We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25a7acf commit 9bd8146Copy full SHA for 9bd8146
1 file changed
cassandra/policies.py
@@ -572,12 +572,18 @@ class WriteType(object):
572
internally before a BATCH write.
573
"""
574
575
+ CAS = 5
576
+ """
577
+ A lighweight-transaction write, such as "DELETE ... IF EXISTS".
578
579
+
580
WriteType.name_to_value = {
581
'SIMPLE': WriteType.SIMPLE,
582
'BATCH': WriteType.BATCH,
583
'UNLOGGED_BATCH': WriteType.UNLOGGED_BATCH,
584
'COUNTER': WriteType.COUNTER,
585
'BATCH_LOG': WriteType.BATCH_LOG,
586
+ 'CAS': WriteType.CAS
587
}
588
589
0 commit comments