queryx: add note to ExecCAS docs

relates to: #228
This commit is contained in:
Kevin Barbour
2022-04-22 09:14:09 +02:00
committed by Michal Jan Matczuk
parent 2ac4afd7d5
commit 5cffcdf5e4

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()