From 1996256f8f63e691f32e9effdf6d95ecd847562c Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Mon, 15 Dec 2014 20:32:49 +0100 Subject: [PATCH] Add support for postgres:// URI prefixes, fix #135. --- src/parsers/command-db-uri.lisp | 2 +- test/csv-filename-pattern.load | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parsers/command-db-uri.lisp b/src/parsers/command-db-uri.lisp index 8711c1e..891afb7 100644 --- a/src/parsers/command-db-uri.lisp +++ b/src/parsers/command-db-uri.lisp @@ -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 diff --git a/test/csv-filename-pattern.load b/test/csv-filename-pattern.load index e283ff6..ce8e492 100644 --- a/test/csv-filename-pattern.load +++ b/test/csv-filename-pattern.load @@ -2,7 +2,7 @@ load csv from all filenames matching ~ in directory 'data' having fields (id, field) - into postgresql:///pgloader?matching + into postgres:///pgloader?matching with fields optionally enclosed by '"', fields terminated by ',', truncate