Пример #1
0
 class SomeClass(SomeOtherClass):
     numbers = Array(Integer32).store_as(xml(no_ns=True, root_tag='a'))
Пример #2
0
 class SomeClass(SomeOtherClass):
     __mapper_args__ = {'polymorphic_identity': 2}
     numbers = Array(Integer32).store_as(xml(no_ns=True, root_tag='a'))
Пример #3
0
        class SomeClass(TableModel):
            __tablename__ = 'some_class'
            __table_args__ = {"sqlite_autoincrement": True}

            id = Integer32(primary_key=True)
            others = Array(SomeOtherClass, store_as=xml(no_ns=True))