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

Function closeDB

stdlib/sql_test.go:37–40  ·  view source on GitHub ↗
(t testing.TB, db *sql.DB)

Source from the content-addressed store, hash-verified

35}
36
37func closeDB(t testing.TB, db *sql.DB) {
38 err := db.Close()
39 require.NoError(t, err)
40}
41
42func skipCockroachDB(t testing.TB, db *sql.DB, msg string) {
43 conn, err := db.Conn(context.Background())

Callers 15

TestSQLOpenFunction · 0.85
TestNormalLifeCycleFunction · 0.85
TestStmtExecFunction · 0.85
TestQueryCloseRowsEarlyFunction · 0.85
TestRegisterConnConfigFunction · 0.85

Calls 1

CloseMethod · 0.65

Tested by

no test coverage detected