From cb950044475ea85a5b02ad9d8de8cb612a51f4e9 Mon Sep 17 00:00:00 2001 From: IsvaraWoo Date: Wed, 26 Jun 2019 11:26:49 +0800 Subject: [PATCH] support pgx/stdlib to drive PostgreSQL. (#180) --- dbr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbr.go b/dbr.go index 945df52b..dccc945e 100644 --- a/dbr.go +++ b/dbr.go @@ -24,7 +24,7 @@ func Open(driver, dsn string, log EventReceiver) (*Connection, error) { switch driver { case "mysql": d = dialect.MySQL - case "postgres": + case "postgres", "pgx": d = dialect.PostgreSQL case "sqlite3": d = dialect.SQLite3