mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-09 15:56:58 +02:00
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.
11 lines
250 B
Fish
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; $$;
|