We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6268b4d commit f6cf4dbCopy full SHA for f6cf4db
common/persistence/nosql/nosqlplugin/cassandra/gocql/batch.go
@@ -45,6 +45,17 @@ func (b *Batch) WithTimestamp(timestamp int64) *Batch {
45
return newBatch(b.session, b.gocqlBatch)
46
}
47
48
+func (b *Batch) SpeculativeExecutionPolicy(sp SpeculativeExecutionPolicy) *Batch {
49
+ return newBatch(b.session, b.gocqlBatch.SpeculativeExecutionPolicy(sp))
50
+}
51
+
52
+func (b *Batch) SetIdempotent() *Batch {
53
+ for i := range b.gocqlBatch.Entries {
54
+ b.gocqlBatch.Entries[i].Idempotent = true
55
+ }
56
+ return newBatch(b.session, b.gocqlBatch)
57
58
59
func mustConvertBatchType(batchType BatchType) gocql.BatchType {
60
switch batchType {
61
case LoggedBatch:
0 commit comments