Documentation ¶
Index ¶
- Constants
- func ConnectPool(ctx context.Context, t *testing.T, connString string) *pgxpool.Pool
- func ConnectSimple(ctx context.Context, t *testing.T, connString string) *pgx.Conn
- func IsPgError(is *is.I, err error, wantCode string)
- func RandomIdentifier(t *testing.T) string
- func SetupTestTable(ctx context.Context, t *testing.T, conn Querier) string
- type Querier
Constants ¶
View Source
const RegularConnString = "postgres://meroxauser:meroxapass@127.0.0.1:5433/meroxadb?sslmode=disable"
RegularConnString is a non-replication user connection string for the test postgres.
View Source
const RepmgrConnString = "postgres://repmgr:repmgrmeroxa@127.0.0.1:5433/meroxadb?sslmode=disable"
RepmgrConnString is a replication user connection string for the test postgres.
Variables ¶
This section is empty.
Functions ¶
func ConnectPool ¶
func ConnectSimple ¶
func RandomIdentifier ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.