pgloader/test/csv-filename-pattern.load
2014-12-15 20:32:49 +01:00

13 lines
374 B
Fish

load csv
from all filenames matching ~<matching.*csv$>
in directory 'data'
having fields (id, field)
into postgres:///pgloader?matching
with fields optionally enclosed by '"',
fields terminated by ',',
truncate
before load do
$$ drop table if exists matching; $$,
$$ create table matching(id int, field text); $$;