pgloader/test/sqlite-chinook-noseq.load
Dimitri Fontaine 29506e6fa6 Assorted fixes for SQLite.
First review the `sqlite_sequence` support so that we can still work with
databases that don't have this catalog, which doesn't always exists -- it
might depend on the SQLite version though.

Then while at it use the sql macro to host the SQLite “queries” in their own
files, enhancing the hackability of the system to some degrees. Not that
much, because we have to use a lot of PGRAMA command and then the column
output isn't documented with the query text itself.
2018-02-08 22:55:15 +01:00

11 lines
250 B
Fish

load database
from 'sqlite/Chinook_Sqlite.sqlite'
into postgresql:///pgloader
set work_mem to '16MB',
maintenance_work_mem to '512 MB',
search_path to 'chinook'
before load do
$$ create schema if not exists chinook; $$;