gocqlx
gocqlx copied to clipboard
Batch insert with list of structs
Current example for batch insert https://github.com/scylladb/gocqlx/blob/master/example_test.go#L105 uses implementation with anonymous struct. This is something that is rarely used in practice.
What is actually needed is a way to iterate over items, add them to the batch builder and then also bind them with the items from the slice.
Hi, are there any plans in the future for supporting this feature? Do you guys have an estimate for the 1.4 version?
Hi @manuporto I'd be delighted to work more on 1.4 items but atm we are busy with other projects. ...
Anyway we accept PRs, if you can contribute this piece of work we are happy to merge and release it.
The new Session API should support the Batch, the batch builder in qb should be removed.
Great, thanks!