MCPcopy Create free account
hub / github.com/bradfitz/go-sql-test / OpenFromConnPool

Function OpenFromConnPool

src/github.com/jackc/pgx/stdlib/sql.go:97–118  ·  view source on GitHub ↗

OpenFromConnPool takes the existing *pgx.ConnPool pool and returns a *sql.DB with pool as the backend. This enables full control over the connection process and configuration while maintaining compatibility with the database/sql interface. In addition, by calling Driver() on the returned *sql.DB and

(pool *pgx.ConnPool)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

StatMethod · 0.80
RegisterMethod · 0.65
OpenMethod · 0.45

Tested by

no test coverage detected