示例#1
0
    class DatetimeTest(Model):

        test_id = Integer(primary_key=True)
        created_at = DateTime()
示例#2
0
    class BoolDefaultValueTest(Model):

        test_id = Integer(primary_key=True)
        stuff = Boolean(default=True)
示例#3
0
    class TimeUUIDTest(Model):

        test_id = Integer(primary_key=True)
        timeuuid = TimeUUID(default=uuid1())
示例#4
0
    class IntegerTest(Model):

        test_id = UUID(primary_key=True, default=lambda: uuid4())
        value = Integer(default=0, required=True)
示例#5
0
    class DecimalTest(Model):

        test_id = Integer(primary_key=True)
        dec_val = Decimal()
示例#6
0
    class UUIDTest(Model):

        test_id = Integer(primary_key=True)
        a_uuid = UUID(default=uuid4())
示例#7
0
    class VarIntTest(Model):

        test_id = Integer(primary_key=True)
        bignum = VarInt(primary_key=True)
示例#8
0
    class BoolValidationTest(Model):

        test_id = Integer(primary_key=True)
        bool_column = Boolean()
示例#9
0
 class DatetimeTest(Model):
     __keyspace__ = 'test'
     test_id = Integer(primary_key=True)
     created_at = DateTime()
示例#10
0
 class DecimalTest(Model):
     __keyspace__ = 'test'
     test_id = Integer(primary_key=True)
     dec_val = Decimal()
示例#11
0
 class VarIntTest(Model):
     __keyspace__ = 'test'
     test_id = Integer(primary_key=True)
     bignum = VarInt(primary_key=True)