added consistency constants to top level
This commit is contained in:
@@ -12,3 +12,13 @@ __version__ = open(__cqlengine_version_path__, 'r').readline().strip()
|
|||||||
SizeTieredCompactionStrategy = "SizeTieredCompactionStrategy"
|
SizeTieredCompactionStrategy = "SizeTieredCompactionStrategy"
|
||||||
LeveledCompactionStrategy = "LeveledCompactionStrategy"
|
LeveledCompactionStrategy = "LeveledCompactionStrategy"
|
||||||
|
|
||||||
|
|
||||||
|
ANY = "ANY"
|
||||||
|
ONE = "ONE"
|
||||||
|
TWO = "TWO"
|
||||||
|
THREE = "THREE"
|
||||||
|
QUORUM = "QUORUM"
|
||||||
|
LOCAL_QUORUM = "LOCAL_QUORUM"
|
||||||
|
EACH_QUORUM = "EACH_QUORUM"
|
||||||
|
ALL = "ALL"
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ from cqlengine.query import ModelQuerySet, DMLQuery, AbstractQueryableColumn
|
|||||||
from cqlengine.query import DoesNotExist as _DoesNotExist
|
from cqlengine.query import DoesNotExist as _DoesNotExist
|
||||||
from cqlengine.query import MultipleObjectsReturned as _MultipleObjectsReturned
|
from cqlengine.query import MultipleObjectsReturned as _MultipleObjectsReturned
|
||||||
|
|
||||||
|
|
||||||
class ModelDefinitionException(ModelException): pass
|
class ModelDefinitionException(ModelException): pass
|
||||||
|
|
||||||
|
|
||||||
@@ -76,6 +75,7 @@ class TTLDescriptor(object):
|
|||||||
"""
|
"""
|
||||||
def __get__(self, instance, model):
|
def __get__(self, instance, model):
|
||||||
if instance:
|
if instance:
|
||||||
|
# instance method
|
||||||
def ttl_setter(ts):
|
def ttl_setter(ts):
|
||||||
instance._ttl = ts
|
instance._ttl = ts
|
||||||
return instance
|
return instance
|
||||||
|
|||||||
Reference in New Issue
Block a user