Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide example for batches and updates #256

Open
cirpene opened this issue Jun 1, 2023 · 1 comment
Open

Provide example for batches and updates #256

cirpene opened this issue Jun 1, 2023 · 1 comment

Comments

@cirpene
Copy link

cirpene commented Jun 1, 2023

A couple of examples would be helpful.

qb package appears deprecated, but there is no other apparent support for batches in currently latest version (2.8.0).

As there is no evident way to extract values from gocqlx.Queryx for gocql.Batch.Query function either, it is not clear how gocql.Batch is supposed to be used with gocqlx now.

Similarly with updates, there is only Insert/Select examples, but an update example would be also appreciated.

@nigel5
Copy link

nigel5 commented Mar 31, 2024

In the master branch you can bindstruct to a batch (https://github.com/scylladb/gocqlx/blob/master/batchx_test.go) but it's not released yet. I forked the repo and released it to my own private branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants