type github.com/jackc/pgx/v5/pgxpool.Pool
36 uses
github.com/jackc/pgx/v5/pgxpool (current package)
conn.go#L14: p *Pool
pool.go#L36: func (cr *connResource) getConn(p *Pool, res *puddle.Resource[*connResource]) *Conn {
pool.go#L79: type Pool struct {
pool.go#L217: func New(ctx context.Context, connString string) (*Pool, error) {
pool.go#L231: func NewWithConfig(ctx context.Context, config *Config) (*Pool, error) {
pool.go#L245: p := &Pool{
pool.go#L480: func (p *Pool) Close() {
pool.go#L487: func (p *Pool) isExpired(res *puddle.Resource[*connResource]) bool {
pool.go#L494: func (p *Pool) triggerHealthCheck() {
pool.go#L516: func (p *Pool) backgroundHealthCheck() {
pool.go#L531: func (p *Pool) checkHealth() {
pool.go#L555: func (p *Pool) checkConnsHealth() bool {
pool.go#L581: func (p *Pool) checkMinConns() error {
pool.go#L595: func (p *Pool) createIdleResources(parentCtx context.Context, targetResources int) error {
pool.go#L625: func (p *Pool) Acquire(ctx context.Context) (c *Conn, err error) {
pool.go#L722: func (p *Pool) AcquireFunc(ctx context.Context, f func(*Conn) error) error {
pool.go#L734: func (p *Pool) AcquireAllIdle(ctx context.Context) []*Conn {
pool.go#L757: func (p *Pool) Reset() {
pool.go#L762: func (p *Pool) Config() *Config { return p.config.Copy() }
pool.go#L765: func (p *Pool) Stat() *Stat {
pool.go#L778: func (p *Pool) Exec(ctx context.Context, sql string, arguments ...any) (pgconn.CommandTag, error) {
pool.go#L798: func (p *Pool) Query(ctx context.Context, sql string, args ...any) (pgx.Rows, error) {
pool.go#L825: func (p *Pool) QueryRow(ctx context.Context, sql string, args ...any) pgx.Row {
pool.go#L838: func (p *Pool) SendBatch(ctx context.Context, b *pgx.Batch) pgx.BatchResults {
pool.go#L856: func (p *Pool) Begin(ctx context.Context) (pgx.Tx, error) {
pool.go#L864: func (p *Pool) BeginTx(ctx context.Context, txOptions pgx.TxOptions) (pgx.Tx, error) {
pool.go#L879: func (p *Pool) CopyFrom(ctx context.Context, tableName pgx.Identifier, columnNames []string, rowSrc pgx.CopyFromSource) (int64, error) {
pool.go#L891: func (p *Pool) Ping(ctx context.Context) error {
tracer.go#L13: TraceAcquireStart(ctx context.Context, pool *Pool, data TraceAcquireStartData) context.Context
tracer.go#L15: TraceAcquireEnd(ctx context.Context, pool *Pool, data TraceAcquireEndData)
tracer.go#L28: TraceRelease(pool *Pool, data TraceReleaseData)
github.com/jackc/pgx/v5/tracelog
tracelog.go#L366: func (tl *TraceLog) TraceAcquireStart(ctx context.Context, _ *pgxpool.Pool, _ pgxpool.TraceAcquireStartData) context.Context {
tracelog.go#L372: func (tl *TraceLog) TraceAcquireEnd(ctx context.Context, _ *pgxpool.Pool, data pgxpool.TraceAcquireEndData) {
tracelog.go#L393: func (tl *TraceLog) TraceRelease(_ *pgxpool.Pool, data pgxpool.TraceReleaseData) {
go.pact.im/x/pgxprocess
pool.go#L17: handle[pgxpool.Pool, *pgxpool.Pool]