MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / _get_db

Method _get_db

mongoengine/document.py:200–202  ·  view source on GitHub ↗

Some Model using other db_alias

(cls)

Source from the content-addressed store, hash-verified

198
199 @classmethod
200 def _get_db(cls):
201 """Some Model using other db_alias"""
202 return get_db(cls._meta.get("db_alias", DEFAULT_CONNECTION_NAME))
203
204 @classmethod
205 def _disconnect(cls):

Callers 15

_fetch_objectsMethod · 0.80
to_pythonMethod · 0.80
_lazy_load_refMethod · 0.80
to_pythonMethod · 0.80
_lazy_load_refMethod · 0.80
_lazy_load_refMethod · 0.80
_get_collectionMethod · 0.80
switch_dbMethod · 0.80
drop_collectionMethod · 0.80
map_reduceMethod · 0.80

Calls 2

get_dbFunction · 0.90
getMethod · 0.45

Tested by 5

test_get_dbMethod · 0.64
test_get_dbMethod · 0.64
test_db_alias_testsMethod · 0.64
test_file_disk_spaceMethod · 0.64