Ejemplo n.º 1
0
    class DatetimeTest(Model):

        test_id = Integer(primary_key=True)
        created_at = DateTime()
Ejemplo n.º 2
0
    class BoolDefaultValueTest(Model):

        test_id = Integer(primary_key=True)
        stuff = Boolean(default=True)
Ejemplo n.º 3
0
    class TimeUUIDTest(Model):

        test_id = Integer(primary_key=True)
        timeuuid = TimeUUID(default=uuid1())
Ejemplo n.º 4
0
    class IntegerTest(Model):

        test_id = UUID(primary_key=True, default=lambda: uuid4())
        value = Integer(default=0, required=True)
Ejemplo n.º 5
0
    class DecimalTest(Model):

        test_id = Integer(primary_key=True)
        dec_val = Decimal()
Ejemplo n.º 6
0
    class UUIDTest(Model):

        test_id = Integer(primary_key=True)
        a_uuid = UUID(default=uuid4())
Ejemplo n.º 7
0
    class VarIntTest(Model):

        test_id = Integer(primary_key=True)
        bignum = VarInt(primary_key=True)
Ejemplo n.º 8
0
    class BoolValidationTest(Model):

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