MCPcopy Create free account
hub / github.com/Boris-code/feapder / get_collection

Method get_collection

feapder/db/mongodb.py:91–97  ·  view source on GitHub ↗

根据集合名获取集合对象 @param coll_name: 集合名 @return:

(self, coll_name, **kwargs)

Source from the content-addressed store, hash-verified

89 return self.client.get_database(database, **kwargs)
90
91 def get_collection(self, coll_name, **kwargs) -> Collection:
92 """
93 根据集合名获取集合对象
94 @param coll_name: 集合名
95 @return:
96 """
97 return self.db.get_collection(coll_name, **kwargs)
98
99 def find(
100 self, coll_name: str, condition: Optional[Dict] = None, limit: int = 0, **kwargs

Callers 8

addMethod · 0.95
add_batchMethod · 0.95
updateMethod · 0.95
update_manyMethod · 0.95
update_batchMethod · 0.95
deleteMethod · 0.95
create_indexMethod · 0.95
get_indexMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected