2
0

implement driver.Connector

This commit is contained in:
James Lawrence
2018-02-25 14:17:38 -05:00
parent 606697ffdf
commit 19a9154d23
5 changed files with 115 additions and 11 deletions
+18
View File
@@ -0,0 +1,18 @@
// +build !go1.10
package stdlib_test
import (
"database/sql"
"testing"
)
// this file contains utility functions for tests that differ between versions.
func openDB(t *testing.T) *sql.DB {
db, err := sql.Open("pgx", "postgres://pgx_md5:secret@127.0.0.1:5432/pgx_test")
if err != nil {
t.Fatalf("sql.Open failed: %v", err)
}
return db
}