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 Context(t *testing.T) context.Context
- func CreatePublication(t *testing.T, conn Querier, pubName string, tables []string)
- func CreateReplicationSlot(t *testing.T, conn Querier, slotName string)
- func IsPgError(is *is.I, err error, wantCode string)
- func RandomIdentifier(t *testing.T) string
- func SetupEmptyTestTable(ctx context.Context, t *testing.T, conn Querier) string
- func SetupEmptyTestTableWithName(ctx context.Context, t *testing.T, conn Querier, table string)
- func SetupTestTable(ctx context.Context, t *testing.T, conn Querier) string
- func SetupTestTableWithName(ctx context.Context, t *testing.T, conn Querier, table string)
- type Querier
Constants ¶
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.
const RepmgrConnString = "postgres://repmgr:repmgrmeroxa@127.0.0.1:5433/meroxadb?sslmode=disable"
RepmgrConnString is a replication user connection string for the test postgres.
const TestTableAvroSchemaV1 = `` /* 844-byte string literal not displayed */
TestTableAvroSchemaV1 is the Avro schema representation of the test table defined through testTableCreateQuery. The fields are sorted by name.
const TestTableAvroSchemaV2 = `` /* 936-byte string literal not displayed */
TestTableAvroSchemaV2 is TestTableAvroSchemaV1 with `column6` (local-timestamp-micros) added.
const TestTableAvroSchemaV3 = `` /* 495-byte string literal not displayed */
TestTableAvroSchemaV3 is TestTableAvroSchemaV1 with `column4` and `column5` dropped.
const TestTableKeyAvroSchema = `{
"type": "record",
"name": "%s",
"fields":
[
{"name":"id","type":"long"}
]
}`
TestTableKeyAvroSchema is the Avro schema for the test table's key column.
Variables ¶
This section is empty.
Functions ¶
func ConnectPool ¶
func ConnectSimple ¶
func CreatePublication ¶ added in v0.7.1
func CreateReplicationSlot ¶ added in v0.7.1
func RandomIdentifier ¶
func SetupEmptyTestTable ¶ added in v0.11.0
SetupTestTable creates a new table and returns its name.
func SetupEmptyTestTableWithName ¶ added in v0.11.1
func SetupTestTable ¶
SetupTestTable creates a new table and returns its name.