コード例 #1
0
ファイル: test_sqlalchemy.py プロジェクト: wfmexpert/spyne
 class SomeClass(SomeOtherClass):
     numbers = Array(Integer32).store_as(xml(no_ns=True, root_tag='a'))
コード例 #2
0
ファイル: test_sqlalchemy.py プロジェクト: wfmexpert/spyne
 class SomeClass(SomeOtherClass):
     __mapper_args__ = {'polymorphic_identity': 2}
     numbers = Array(Integer32).store_as(xml(no_ns=True, root_tag='a'))
コード例 #3
0
ファイル: test_sqlalchemy.py プロジェクト: wfmexpert/spyne
        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))