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 1ec6020 commit 187f89dCopy full SHA for 187f89d
docs/source/data-types/counter.md
@@ -11,6 +11,12 @@
11
use futures::TryStreamExt;
12
use scylla::frame::value::Counter;
13
14
+// Add to counter value
15
+let to_add: Counter = Counter(100);
16
+session
17
+ .query_unpaged("UPDATE keyspace.table SET c = c + ? WHERE pk = 15", (to_add,))
18
+ .await?;
19
+
20
// Read counter from the table
21
let mut iter = session.query_iter("SELECT c FROM keyspace.table", &[])
22
.await?
0 commit comments