예제 #1
0
        class SomeClass(TableModel):
            __tablename__ = 'some_class'
            __table_args__ = {"sqlite_autoincrement": True}

            id = Integer32(primary_key=True, autoincrement=False)
            s = Unicode(64, sqla_column_args=dict(name='ss'))
예제 #2
0
        class SomeOtherClass(TableModel):
            __tablename__ = 'some_other_class'
            __table_args__ = {"sqlite_autoincrement": True}

            id = Integer32(primary_key=True)
            s = Unicode(64)
예제 #3
0
 class C(TableModel):
     __tablename__ = "c"
     u = Unicode(pk=True)
예제 #4
0
 class SomeTable(TableModel):
     __tablename__ = 'some_table'
     id = Integer32(pk=True)
     i = Integer32
     s = Unicode(32)
예제 #5
0
        class SomeChildClass(TableModel):
            __tablename__ = 'some_child_class'

            id = Integer32(primary_key=True)
            s = Unicode(64)
            i = Integer32
예제 #6
0
 class SomeOtherClass(ComplexModel):
     id = Integer32
     s = Unicode(64)
예제 #7
0
        class SomeClass(TableModel):
            __tablename__ = 'some_class'
            __table_args__ = {"sqlite_autoincrement": True}

            i = XmlAttribute(Integer32(pk=True))
            s = XmlData(Unicode(64))