mirror of https://github.com/jackc/pgx.git
23 lines
1.3 KiB
Plaintext
23 lines
1.3 KiB
Plaintext
package pgx_test
|
|
|
|
import (
|
|
"github.com/jackc/pgx"
|
|
)
|
|
|
|
var defaultConnConfig *pgx.ConnConfig = &pgx.ConnConfig{Host: "127.0.0.1", User: "pgx_md5", Password: "secret", Database: "pgx_test"}
|
|
|
|
// To skip tests for specific connection / authentication types set that connection param to nil
|
|
var tcpConnConfig *pgx.ConnConfig = nil
|
|
var unixSocketConnConfig *pgx.ConnConfig = nil
|
|
var md5ConnConfig *pgx.ConnConfig = nil
|
|
var plainPasswordConnConfig *pgx.ConnConfig = nil
|
|
var noPasswordConnConfig *pgx.ConnConfig = nil
|
|
var invalidUserConnConfig *pgx.ConnConfig = nil
|
|
|
|
// var tcpConnConfig *pgx.ConnConfig = &pgx.ConnConfig{Host: "127.0.0.1", User: "pgx_md5", Password: "secret", Database: "pgx_test"}
|
|
// var unixSocketConnConfig *pgx.ConnConfig = &pgx.ConnConfig{Host: "/private/tmp", User: "pgx_none", Database: "pgx_test"}
|
|
// var md5ConnConfig *pgx.ConnConfig = &pgx.ConnConfig{Host: "127.0.0.1", User: "pgx_md5", Password: "secret", Database: "pgx_test"}
|
|
// var plainPasswordConnConfig *pgx.ConnConfig = &pgx.ConnConfig{Host: "127.0.0.1", User: "pgx_pw", Password: "secret", Database: "pgx_test"}
|
|
// var noPasswordConnConfig *pgx.ConnConfig = &pgx.ConnConfig{Host: "127.0.0.1", User: "pgx_none", Database: "pgx_test"}
|
|
// var invalidUserConnConfig *pgx.ConnConfig = &pgx.ConnConfig{Host: "127.0.0.1", User: "invalid", Database: "pgx_test"}
|