예제 #1
0
class ScalarTypeMessage(TestORMMessage):
    name = StringField()
    number = Int32Field()
    big_number = Int64Field()
    active = BooleanField()
    deleted = BooleanField()
    raw_data = BytesField()
예제 #2
0
 class Test(Message):
     name = StringField()
     number = Int32Field()
     big_number = Int64Field()
     active = BooleanField()
     deleted = BooleanField()
     raw_data = BytesField()
예제 #3
0
 class TestMessage(Message):
     name = StringField()
예제 #4
0
 class TextPost(Post):
     content = StringField()
예제 #5
0
 class Post(Message):
     title = StringField()
예제 #6
0
 class TestMapRef(Message):
     map_field = MapField(StringField(), ReferenceField(Test()))
예제 #7
0
 class TestMessageThree(Message):
     name = StringField()
     ref = ReferenceField(TestMessageOne())
예제 #8
0
 class TestMessageTwo(Message):
     __filename__ = "test"
     name = StringField()
예제 #9
0
class TestBlueprintMessage(Message):
    __filename__ = "test_blueprint"
    name = StringField()
예제 #10
0
class CompositeMessage(TestORMMessage):
    ref_field = ReferenceField(SimpleMessage())
    list_test_field = RepeatedField(ReferenceField(SimpleMessage()))
    list_int_field = RepeatedField(Int32Field())
    map_field = MapField(StringField(), ReferenceField(SimpleMessage()))