Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ Log
Class
Log
tests/document/test_instance.py:88–90 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
86
""
"Ensure that capped collections work properly."
""
87
88
class
Log(Document):
89
date = DateTimeField(default=datetime.now)
90
meta = {
"max_documents"
: 10,
"max_size"
: 4096}
91
92
Log.drop_collection()
93
Callers
3
test_capped_collection
Method · 0.70
test_capped_collection_default
Method · 0.70
test_capped_collection_no_max_size_problems
Method · 0.70
Calls
1
DateTimeField
Class · 0.85
Tested by
3
test_capped_collection
Method · 0.56
test_capped_collection_default
Method · 0.56
test_capped_collection_no_max_size_problems
Method · 0.56