MCPcopy
hub / github.com/jackc/pgx / SkipCockroachDB

Function SkipCockroachDB

pgxtest/pgxtest.go:151–155  ·  view source on GitHub ↗

SkipCockroachDB calls Skip on t with msg if the connection is to a CockroachDB server.

(t testing.TB, conn *pgx.Conn, msg string)

Source from the content-addressed store, hash-verified

149
150// SkipCockroachDB calls Skip on t with msg if the connection is to a CockroachDB server.
151func SkipCockroachDB(t testing.TB, conn *pgx.Conn, msg string) {
152 if conn.PgConn().ParameterStatus("crdb_version") != "" {
153 t.Skip(msg)
154 }
155}
156
157func SkipPostgreSQLVersionLessThan(t testing.TB, conn *pgx.Conn, minVersion int64) {
158 serverVersionStr := conn.PgConn().ParameterStatus("server_version")

Calls 2

ParameterStatusMethod · 0.80
PgConnMethod · 0.80