Versions in this module Expand all Collapse all v2 v2.1.0 Apr 20, 2026 v2.0.0 Apr 20, 2026 Changes in this version + type Client struct + func New(dsn string) (*Client, error) + func NewWithConfig(cfg *Config) (*Client, error) + func (c *Client) DB() *sql.DB + func (c *Client) Name() string + func (c *Client) Pool() *pgxpool.Pool + func (c *Client) QueryExecMode() pgx.QueryExecMode + func (c *Client) QueryTracer() pgx.QueryTracer + func (c *Client) Shutdown(_ context.Context) error + func (c *Client) Start(ctx context.Context) error + type Config struct + ConnMaxIdleTime time.Duration + ConnMaxLifetime time.Duration + DSN string + MaxConns int + MaxIdleConns int + MinConns int + Name string + QueryExecMode pgx.QueryExecMode + Tracer *trace.Tracer