예제 #1
0
파일: db.py 프로젝트: TesiFAO/p-geo
def find_by_code(collection, code, sortdate):
    return mongo_commons.find(client, database, collection, { "$query": { "code" : code }, "$orderby": [{ "coverageTime.from" : sortdate }]});
예제 #2
0
파일: db.py 프로젝트: TesiFAO/p-geo
def find_query(collection, query):
    return mongo_commons.find(client, database, collection, query)
예제 #3
0
파일: db.py 프로젝트: TesiFAO/p-geo
def find_by_layername(collection, layername):
    return mongo_commons.find(client, database, collection, { "$query": { "layername" : layername }, "$orderby": [{ "layertitle" : 1 }]});
예제 #4
0
파일: db.py 프로젝트: TesiFAO/p-geo
def find(collection):
     return mongo_commons.find(client, database, collection, { "$query": {}, "$orderby": [{ "layertitle" : 1 }, {"date" : 1}]})