-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
sqlite-utils bulk
command
#375
Labels
Milestone
Comments
|
simonw
added a commit
that referenced
this issue
Jan 10, 2022
I tested the prototype like this:
|
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
.executemany()
method is a very efficient way to execute the same SQL query against a huge list of parameters.sqlite-utils insert
supports a bunch of ways of loading a list of dictionaries - from CSV, TSV, JSON, newline JSON and more thanks to:What if you could load a list of dictionaries and provide a SQL query with
:named
parameters that correspond to keys in those dictionaries instead?This would need to be a new command - I thought about adding a
--sql
option toinsert
but that doesn't make sense as that command already requires a table name.The text was updated successfully, but these errors were encountered: