queryx: add note to ExecCAS docs

relates to: #228
This commit is contained in:
Kevin Barbour authored and Michal Jan Matczuk committed 2022-04-25 11:08:48 +02:00
1 parent 2ac4afd7d5
commit 5cffcdf5e4
1 file changed
+4
+4
View File
@@ -236,6 +236,10 @@ func (q *Queryx) ExecRelease() error {
// ExecCAS executes the Lightweight Transaction query, returns whether query was applied. // ExecCAS executes the Lightweight Transaction query, returns whether query was applied.
// See: https://docs.scylladb.com/using-scylla/lwt/ for more details. // See: https://docs.scylladb.com/using-scylla/lwt/ for more details.
//
// When using Cassandra it may be necessary to use NoSkipMetadata in order to obtain an
// accurate "applied" value. See the documentation of NoSkipMetaData method on this page
// for more details.
func (q *Queryx) ExecCAS() (applied bool, err error) { func (q *Queryx) ExecCAS() (applied bool, err error) {
q.NoSkipMetadata() q.NoSkipMetadata()
iter := q.Iter().StructOnly() iter := q.Iter().StructOnly()