Esempio n. 1
0
class PrimaryKeysOnlyModel(Model):

    __options__ = {'compaction': {'class': 'LeveledCompactionStrategy'}}

    first_ey = columns.Integer(primary_key=True)
    second_key = columns.Integer(primary_key=True)
Esempio n. 2
0
 class DepthModel(Model):
     id = columns.Integer(primary_key=True)
     v_0 = columns.UserDefinedType(Depth_0)
     v_1 = columns.UserDefinedType(Depth_1)
     v_2 = columns.UserDefinedType(Depth_2)
     v_3 = columns.UserDefinedType(Depth_3)
Esempio n. 3
0
class User(UserType):
    age = columns.Integer()
    name = columns.Text()
class AbstractModelWithFullCols(Model):
    __abstract__ = True

    pkey = columns.Integer(primary_key=True)
    data = columns.Integer()
        class WildDBNames(Model):

            id = columns.UUID(primary_key=True, default=lambda: uuid4())
            content = columns.Text(db_field='words_and_whatnot')
            numbers = columns.Integer(db_field='integers_etc')
        class DelModel(Model):

            id = columns.UUID(primary_key=True, default=lambda: uuid4())
            key = columns.Integer(primary_key=True)
            data = columns.Integer(required=False)
class AbstractModelWithCol(Model):

    __abstract__ = True
    pkey = columns.Integer(primary_key=True)
Esempio n. 8
0
class TestIfNotExistsModel(Model):

    id = columns.UUID(primary_key=True, default=lambda: uuid4())
    count = columns.Integer()
    text = columns.Text(required=False)
Esempio n. 9
0
class popularhashtags(Model):
    longitude = columns.Integer(primary_key=True)
    latitude = columns.Integer(primary_key=True)
    occurence = columns.Integer(primary_key=True)
    hashtag = columns.Text(primary_key=True)
Esempio n. 10
0
            class Base(models.Model):

                partition = columns.Integer(primary_key=True)
                type1 = columns.Set(columns.Integer, discriminator_column=True)
Esempio n. 11
0
class InheritBase(models.Model):

    partition = columns.UUID(primary_key=True, default=uuid.uuid4)
    row_type = columns.Integer(discriminator_column=True)
Esempio n. 12
0
 class M(models.Model):
     partition = columns.Integer(primary_key=True)
     type1 = columns.Integer(discriminator_column=True)
     type2 = columns.Integer(discriminator_column=True)
Esempio n. 13
0
class aula(DjangoCassandraModel):
    id = columns.UUID(primary_key=True, required=True, default=uuid.uuid4)
    nro = columns.Integer(required=False, index=True)
    piso = columns.Text(required=False)
    capacidad = columns.Integer(required=False)
Esempio n. 14
0
class DateTimeQueryTestModel(Model):

    user = columns.Integer(primary_key=True)
    day = columns.DateTime(primary_key=True)
    data = columns.Text()
        class Stuff(Model):

            id = columns.UUID(primary_key=True, default=lambda: uuid4())
            num = columns.Integer()
Esempio n. 16
0
class TokenTestModel(Model):
    __table_name__ = "token_test_model"
    key = columns.Integer(primary_key=True)
    val = columns.Integer()
 class InheritedModel(TestModel):
     numbers = columns.Integer()
Esempio n. 18
0
            class IllegalTimestampColumnModel(Model):

                my_primary_key = columns.Integer(primary_key=True)
                timestamp = columns.BigInt()
class ConcreteModel(AbstractModel):
    pkey = columns.Integer(primary_key=True)
    data = columns.Integer()
Esempio n. 20
0
            class IllegalFilterColumnModel(Model):

                my_primary_key = columns.Integer(primary_key=True)
                filter = columns.Text()
class ConcreteModelWithCol(AbstractModelWithCol):
    data = columns.Integer()
Esempio n. 22
0
        class EqualityModel1(Model):

            kk = columns.Integer(primary_key=True)
 class AlreadyLoadedTest(ConcreteModelWithCol):
     new_field = columns.Integer()
Esempio n. 24
0
 class table(Model):
     __keyspace__ = 'keyspace'
     select = columns.Integer(primary_key=True)
     table = columns.Text()
     where = columns.Text()
Esempio n. 25
0
 class Depth_0(UserType):
     age = columns.Integer()
     name = columns.Text()
        class Stuff(Model):

            id = columns.UUID(primary_key=True, default=lambda: uuid4())
            words = columns.Text()
            content = columns.Text()
            numbers = columns.Integer()
Esempio n. 27
0
 class Allv4DatatypesModel(Model):
     id = columns.Integer(primary_key=True)
     data = columns.UserDefinedType(Allv4Datatypes)
            class TestModel(Model):

                count = columns.Integer()
                text = columns.Text(required=False)
Esempio n. 29
0
class UserModel(Model):
    id = columns.Integer(primary_key=True)
    info = columns.UserDefinedType(User)
Esempio n. 30
0
class CapitalizedKeyModel(Model):

    firstKey = columns.Integer(primary_key=True)
    secondKey = columns.Integer(primary_key=True)
    someData = columns.Text()