Help us shape the future of Go! Take the 2026 Go Developer Survey

pgx

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TextNumeric bool
	RFC3339Time bool
	TextBigInt  bool
	TextJson    bool
}

func (*Config) Convert

func (c *Config) Convert(v map[string]any) (r map[string]any, err error)

func (*Config) Parse

func (c *Config) Parse(v map[string]any, key ...string) (r map[string]any, err error)

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) Configure

func (c *Conn) Configure() *Config

func (*Conn) Exec

func (c *Conn) Exec(qry string, args map[string]any) (r pgconn.CommandTag, err error)

func (*Conn) IsBusy

func (c *Conn) IsBusy() bool

func (*Conn) IsClosed

func (c *Conn) IsClosed() bool

func (*Conn) Prepare

func (c *Conn) Prepare(qry, name string) (*pgconn.StatementDescription, error)

func (*Conn) Query

func (c *Conn) Query(qry string, args map[string]any) (r *Rows, err error)

type ConnPool

type ConnPool struct {
	// contains filtered or unexported fields
}

func (*ConnPool) Acquire

func (c *ConnPool) Acquire() (p *PoolConn, err error)

func (*ConnPool) Close

func (c *ConnPool) Close() error

func (*ConnPool) Configure

func (c *ConnPool) Configure() *Config

func (*ConnPool) Exec

func (c *ConnPool) Exec(qry string, args map[string]any) (r pgconn.CommandTag, err error)

func (*ConnPool) Query

func (c *ConnPool) Query(qry string, args map[string]any) (rx *Rows, err error)

type PgxModule

type PgxModule struct {
}

func (PgxModule) Exports

func (d PgxModule) Exports() map[string]any

func (PgxModule) ExportsWithEngine

func (d PgxModule) ExportsWithEngine(eng *engine.Engine) map[string]any

func (PgxModule) Identity

func (d PgxModule) Identity() string

func (PgxModule) TypeDefine

func (d PgxModule) TypeDefine() []byte

type PoolConfig

type PoolConfig struct {
	*Config
}

type PoolConn

type PoolConn struct {
	// contains filtered or unexported fields
}

func (*PoolConn) Close

func (c *PoolConn) Close() error

func (*PoolConn) Configure

func (c *PoolConn) Configure() *Config

func (*PoolConn) Exec

func (c *PoolConn) Exec(qry string, args map[string]any) (r pgconn.CommandTag, err error)

func (*PoolConn) Prepare

func (c *PoolConn) Prepare(qry, name string) (*pgconn.StatementDescription, error)

func (*PoolConn) Query

func (c *PoolConn) Query(qry string, args map[string]any) (r *Rows, err error)

type Rows

type Rows struct {
	Closed bool
	// contains filtered or unexported fields
}

func (*Rows) Close

func (c *Rows) Close() error

func (*Rows) Parse

func (c *Rows) Parse() ([]any, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL