Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ get_doc_alias
Function
get_doc_alias
mongoengine/base/common.py:55–56 ·
view source on GitHub ↗
(doc_cls)
Source
from the content-addressed store, hash-verified
53
""
"Get all registered Documents class attached to a given database"
""
54
55
def
get_doc_alias(doc_cls):
56
return
doc_cls._meta.get(
"db_alias"
, default_connection_alias)
57
58
return
[
59
doc_cls
Callers
1
_get_documents_by_db
Function · 0.85
Calls
1
get
Method · 0.45
Tested by
no test coverage detected