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

Class Book

benchmarks/test_basic_doc_ops.py:23–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22def test_basic():
23 class Book(Document):
24 name = StringField()
25 pages = IntField()
26 tags = ListField(StringField())
27 is_published = BooleanField()
28 author_email = EmailField()
29
30 Book.drop_collection()
31

Callers 1

init_bookFunction · 0.70

Calls 5

StringFieldClass · 0.90
IntFieldClass · 0.90
ListFieldClass · 0.90
BooleanFieldClass · 0.90
EmailFieldClass · 0.90

Tested by 1

init_bookFunction · 0.56