(t testing.TB, msg string)
| 10 | ) |
| 11 | |
| 12 | func skipCockroachDB(t testing.TB, msg string) { |
| 13 | conn, err := pgx.Connect(context.Background(), os.Getenv("PGX_TEST_DATABASE")) |
| 14 | if err != nil { |
| 15 | t.Fatal(err) |
| 16 | } |
| 17 | defer conn.Close(context.Background()) |
| 18 | |
| 19 | if conn.PgConn().ParameterStatus("crdb_version") != "" { |
| 20 | t.Skip(msg) |
| 21 | } |
| 22 | } |
no test coverage detected