예제 #1
0
 class AllDatatypes(UserType):
     a = columns.Ascii()
     b = columns.BigInt()
     c = columns.Blob()
     d = columns.Boolean()
     e = columns.DateTime()
     f = columns.Decimal()
     g = columns.Double()
     h = columns.Float()
     i = columns.Inet()
     j = columns.Integer()
     k = columns.Text()
     l = columns.TimeUUID()
     m = columns.UUID()
     n = columns.VarInt()
예제 #2
0
 class AllDatatypesModel(Model):
     id = columns.Integer(primary_key=True)
     a = columns.Ascii()
     b = columns.BigInt()
     c = columns.Blob()
     d = columns.Boolean()
     e = columns.DateTime()
     f = columns.Decimal()
     g = columns.Double()
     h = columns.Float()
     i = columns.Inet()
     j = columns.Integer()
     k = columns.Text()
     l = columns.TimeUUID()
     m = columns.UUID()
     n = columns.VarInt()
예제 #3
0
 class DerivedTimeModel(TimeModelBase):
     __table_name__ = "derived_time"
     uuid = columns.TimeUUID(primary_key=True, partition_key=True)
     value = columns.Text(required=False)
예제 #4
0
 class TimeModelBase(Model):
     uuid = columns.TimeUUID(primary_key=True)