-
Notifications
You must be signed in to change notification settings - Fork 33
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
importing large .sql files (sqlite) #430
Comments
Hi @c-nv-s, There isn't currently a good way to execute arbitrary SQL files against a source. Well, I should say that it's a weakness I'm aware of, but it's not been fully implemented yet. There's actually a hidden beta version implemented for postgres, but I'm not entirely happy with it, and it's not been implemented for SQLite or the other drivers yet.
There's an entire family of these Anyway, this The complexity with So... it's on the agenda, and it's def a weakness. _n |
BTW, to create an empty SQLite DB, you don't need to use $ sq add --driver=sqlite3 ./new_sqlite_datafile.db |
ok thanks for the explanation... |
Describe the bug
Source data is the Sakila dataset: https://github.com/jOOQ/sakila/blob/main/sqlite-sakila-db/sqlite-sakila-schema.sql
To Reproduce
Expected behavior
the sqlite database should get populated with all schema tables and data seeded from the .sql file
maybe it might be useful to allow a
--file
flag to specify a file which contains the sql statements to executesq
versionsq v0.48.3
The text was updated successfully, but these errors were encountered: