Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MongoEngine/mongoengine
/ Number2
Class
Number2
tests/queryset/test_queryset.py:4385–4386 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
4383
""
"Ensure that switching databases for a queryset is possible"
""
4384
4385
class
Number2(Document):
4386
n = IntField()
4387
4388
Number2.drop_collection()
4389
with
switch_db(Number2,
"test2"
)
as
Number2:
Callers
1
test_using
Method · 0.85
Calls
1
IntField
Class · 0.85
Tested by
1
test_using
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…