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

Insert multiple rows in transaction with id BIGSERIAL #253

Open
vladivolo opened this issue Dec 14, 2022 · 0 comments
Open

Insert multiple rows in transaction with id BIGSERIAL #253

vladivolo opened this issue Dec 14, 2022 · 0 comments

Comments

@vladivolo
Copy link

vladivolo commented Dec 14, 2022

tx, err := sess.Begin()

_, err := tx.InsertInto("dbr_people").Columns("id", "name", "email").Values(???, "Barack", "[email protected]").Exec()
_, err := tx.InsertInto("dbr_people").Columns("id", "name", "email").Values(???, "Putin", "[email protected]").Exec()

how to get the following value for the field id ???

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

1 participant