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

Method Close

stdlib/sql.go:446–450  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

444}
445
446func (c *Conn) Close() error {
447 ctx, cancel := context.WithTimeout(context.Background(), time.Second*5)
448 defer cancel()
449 return c.close(ctx)
450}
451
452func (c *Conn) Begin() (driver.Tx, error) {
453 return c.BeginTx(context.Background(), driver.TxOptions{})

Callers 1

PingMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected