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

Support tuple lists #9

Closed
mcfunley opened this issue Jun 7, 2019 · 1 comment
Closed

Support tuple lists #9

mcfunley opened this issue Jun 7, 2019 · 1 comment

Comments

@mcfunley
Copy link
Owner

mcfunley commented Jun 7, 2019

This is necessary for multi-inserts:

https://www.hugsql.org/#param-tuple-list

Hopefully there's a way to do this without ditching sqlalchemy's interpolation.

@mcfunley
Copy link
Owner Author

This didn't turn out to be necessary for multi-row inserts. Instead I made this work:

queries.create_foo([
  { 'id': 2, 'val': 'x' },
  { 'id': 3, 'val': 'y' },
  { 'id': 4, 'val': 'z' },
])

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