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

Batch insert with list of structs #110

Open
ajankovic opened this issue Aug 12, 2019 · 4 comments
Open

Batch insert with list of structs #110

ajankovic opened this issue Aug 12, 2019 · 4 comments

Comments

@ajankovic
Copy link
Contributor

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.

@mmatczuk mmatczuk added this to the 2.0 milestone Nov 7, 2019
@miporto
Copy link

miporto commented Feb 24, 2020

Hi, are there any plans in the future for supporting this feature? Do you guys have an estimate for the 1.4 version?

@mmatczuk
Copy link
Contributor

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.

@mmatczuk
Copy link
Contributor

The new Session API should support the Batch, the batch builder in qb should be removed.

@mmatczuk mmatczuk removed this from the 1.5 milestone Apr 22, 2020
@miporto
Copy link

miporto commented Apr 23, 2020

Great, thanks!

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

3 participants