Add support for postgres:// URI prefixes, fix #135.

This commit is contained in:
Dimitri Fontaine 2014-12-15 20:32:49 +01:00
parent 1b859d269c
commit 1996256f8f
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@
(declare (ignore qm))
(list :table-name name)))
(defrule pgsql-prefix (and (or "postgresql" "pgsql") "://")
(defrule pgsql-prefix (and (or "postgresql" "postgres" "pgsql") "://")
(:constant (list :type :postgresql)))
(defrule pgsql-uri (and pgsql-prefix

View File

@ -2,7 +2,7 @@ load csv
from all filenames matching ~<matching.*csv$>
in directory 'data'
having fields (id, field)
into postgresql:///pgloader?matching
into postgres:///pgloader?matching
with fields optionally enclosed by '"',
fields terminated by ',',
truncate