def fetch_record(file_id, key_name):
     cursor = file_cache_coll.find({'file_id': file_id}, {'_id': 0})
     doc = CursorResult.one(cursor)
     if doc is not None and doc.get(key_name) is not None:
         return doc.get(key_name)
     else:
         return None
Пример #2
0
 def find(file_id, func_addr):
     cursor = func_cache_coll.find(
         {
             'file_id': file_id,
             'func_addr': func_addr
         }, {'_id': 0})
     return CursorResult.one(cursor)
Пример #3
0
 def fetch_pack(pack_id):
     cursor = pack_com_files_coll.find({'pack_id': pack_id}, {'_id': 0})
     return CursorResult.one(cursor)
 def find(file_id):
     cursor = cnvd_share_coll.find({'file_id': file_id}, {'_id': 0})
     return CursorResult.one(cursor)
Пример #5
0
 def find(file_id):
     cursor = fw_files_coll.find({'file_id': file_id}, {'_id': 0})
     return CursorResult.one(cursor)
 def find(file_id):
     cursor = cfg_result_col.find({'file_id': file_id}, {'_id': 0})
     return CursorResult.one(cursor)
 def find(task_id):
     cursor = tasks_coll.find({'task_id': task_id}, {'_id': 0})
     return CursorResult.one(cursor)
 def fetch_name(name):
     cursor = pack_com_files_coll.find({'name': name}, {'_id': 0})
     return CursorResult.one(cursor)
 def search_component_name(file_name):
     cursor = make_com_files_coll.find({'file_name': file_name})
     return CursorResult.one(cursor)
 def fetch_file(file_id):
     cursor = make_com_files_coll.find({'file_id': file_id}, {'_id': 0})
     return CursorResult.one(cursor)
Пример #11
0
 def search_func_name(func_name):
     cursor = func_taint_col.find({'func_name': func_name}, {'_id': 0})
     return CursorResult.one(cursor)
Пример #12
0
 def find(fun_id):
     cursor = func_taint_col.find({'fun_id': fun_id}, {'_id': 0})
     return CursorResult.one(cursor)