class TestModel(Model):
     count = columns.Integer()
     text = columns.Text(required=False)
Beispiel #2
0
class SecondModel(Model):
    __table_name__ = 'first_model'
    first_key = columns.UUID(primary_key=True)
    second_key = columns.UUID()
    third_key = columns.Text()
    fourth_key = columns.Text()
class IndexedPoly1(IndexedPolyBase):
    __polymorphic_key__ = 1
    data1 = columns.Text()
Beispiel #4
0
class ReservedWordModel(Model):
    token = columns.Text(primary_key=True)
    insert = columns.Integer(index=True)
Beispiel #5
0
class LowercaseKeyModel(Model):
    first_key = columns.Integer(primary_key=True)
    second_key = columns.Integer(primary_key=True)
    some_data = columns.Text()
Beispiel #6
0
class tsunami_table(Model):
    code_gsm = columns.Text(primary_key=True)
    timeslot        = columns.Integer(primary_key=True)
    phone      = columns.List(columns.Integer)
Beispiel #7
0
class TestModel(Model):
    id = columns.UUID(primary_key=True, default=lambda: uuid4())
    count = columns.Integer()
    text = columns.Text(required=False)
    a_bool = columns.Boolean(default=False)
Beispiel #8
0
 class reviewerProfile(Model):
     reviewerID = columns.Text(primary_key=True)
     reviews = columns.Map(columns.Text, columns.Float)
Beispiel #9
0
        class TestModel(Model):

            p1 = columns.Text(partition_key=True)
            p2 = columns.Text(partition_key=True)
Beispiel #10
0
            class IllegalFilterColumnModel(Model):

                my_primary_key = columns.Integer(primary_key=True)
                filter = columns.Text()
Beispiel #11
0
class TestDefaultTTLModel(Model):
    __default_ttl__ = 20
    id = columns.UUID(primary_key=True, default=lambda: uuid4())
    count = columns.Integer()
    text = columns.Text(required=False)
Beispiel #12
0
 class stock_totals_batch(Model):
     user = columns.Text(primary_key=True)
     portfolio_total = columns.Integer()
Beispiel #13
0
 class stock_counts_batch(Model):
     user = columns.Text(primary_key=True)
     company = columns.Text(primary_key=True)
     stock_total = columns.Integer()
     portfolio_ratio = columns.Float()
     contact_limit = columns.Float()
 class TestModel(Model):
     id = columns.UUID(primary_key=True, default=lambda: uuid4())
     text = columns.Text()
Beispiel #15
0
class LeveledcompactionTestTable(Model):
    __compaction__ = LeveledCompactionStrategy
    __compaction_sstable_size_in_mb__ = 64

    user_id = columns.UUID(primary_key=True)
    name = columns.Text()
Beispiel #16
0
class getuserid(Model):
  username = columns.Text(primary_key=True)
  userid = columns.Integer()
  def __repr__(self):
    return '%s %d' % (self.username, self.userid)
 class movieprofile9(Model):
     mid = columns.Integer(primary_key=True)
     asin = columns.Text()
     title = columns.Text()
     imurl = columns.Text()
Beispiel #18
0
class IndexedTestModel(Model):
    test_id = columns.Integer(primary_key=True)
    attempt_id = columns.Integer(index=True)
    description = columns.Text()
    expected_result = columns.Integer()
    test_result = columns.Integer(index=True)
Beispiel #19
0
class userfollow(Model):
    username = columns.Text(primary_key=True)
    following = columns.List(columns.Text)

    def __repr__(self):
        return '%s %d' % (self.username, self.following)
Beispiel #20
0
class TimeUUIDQueryModel(Model):
    partition = columns.UUID(primary_key=True)
    time = columns.TimeUUID(primary_key=True)
    data = columns.Text(required=False)
Beispiel #21
0
class IndexDefinitionModel(Model):
    key = columns.UUID(primary_key=True)
    val = columns.Text(index=True)
Beispiel #22
0
 class EmptyCompactionModel(Model):
     __compaction__ = None
     cid = columns.UUID(primary_key=True)
     name = columns.Text()
Beispiel #23
0
class TestMultiKeyModel(Model):
    partition = columns.Integer(primary_key=True)
    cluster = columns.Integer(primary_key=True)
    count = columns.Integer(required=False)
    text = columns.Text(required=False)
Beispiel #24
0
class CompactionLeveledStrategyModel(Model):
    __compaction__ = LeveledCompactionStrategy
    cid = columns.UUID(primary_key=True)
    name = columns.Text()
Beispiel #25
0
class CapitalizedKeyModel(Model):
    firstKey = columns.Integer(primary_key=True)
    secondKey = columns.Integer(primary_key=True)
    someData = columns.Text()
Beispiel #26
0
class CompactionSizeTieredModel(Model):
    __compaction__ = SizeTieredCompactionStrategy
    cid = columns.UUID(primary_key=True)
    name = columns.Text()
class UnindexedPoly3(UnindexedPoly2):
    __polymorphic_key__ = 3
    data3 = columns.Text()
Beispiel #28
0
        class AllLeveledOptionsModel(Model):
            __compaction__ = LeveledCompactionStrategy
            __compaction_sstable_size_in_mb__ = 64

            cid = columns.UUID(primary_key=True)
            name = columns.Text()
class IndexedPoly2(IndexedPolyBase):
    __polymorphic_key__ = 2
    data2 = columns.Text()
 class Stuff(Model):
     id = columns.UUID(primary_key=True, default=lambda: uuid4())
     words = columns.Text()
     content = columns.Text()
     numbers = columns.Integer()