Documentation
¶
Index ¶
- type Querier
- func (m *Querier) Close(ctx context.Context) error
- func (m *Querier) Exec(ctx context.Context, query string, args ...any) (postgres.CommandTag, error)
- func (m *Querier) ExecInTx(ctx context.Context, fn func(tx postgres.Tx) error) error
- func (m *Querier) ExecInTxWithOptions(ctx context.Context, fn func(tx postgres.Tx) error, opts postgres.TxOptions) error
- func (m *Querier) Query(ctx context.Context, query string, args ...any) (postgres.Rows, error)
- func (m *Querier) QueryRow(ctx context.Context, query string, args ...any) postgres.Row
- type ReplicationConn
- func (m *ReplicationConn) Close(ctx context.Context) error
- func (m *ReplicationConn) IdentifySystem(ctx context.Context) (postgres.IdentifySystemResult, error)
- func (m *ReplicationConn) ReceiveMessage(ctx context.Context) (*postgres.ReplicationMessage, error)
- func (m *ReplicationConn) SendStandbyStatusUpdate(ctx context.Context, lsn uint64) error
- func (m *ReplicationConn) StartReplication(ctx context.Context, cfg postgres.ReplicationConfig) error
- type Row
- type Rows
- func (m *Rows) Close()
- func (m *Rows) CommandTag() pgconn.CommandTag
- func (m *Rows) Conn() *pgx.Conn
- func (m *Rows) Err() error
- func (m *Rows) FieldDescriptions() []pgconn.FieldDescription
- func (m *Rows) Next() bool
- func (m *Rows) RawValues() [][]byte
- func (m *Rows) Scan(dest ...any) error
- func (m *Rows) Values() ([]any, error)
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Querier ¶
type Querier struct { QueryRowFn func(ctx context.Context, query string, args ...any) postgres.Row QueryFn func(ctx context.Context, query string, args ...any) (postgres.Rows, error) ExecFn func(context.Context, uint, string, ...any) (postgres.CommandTag, error) ExecInTxFn func(context.Context, func(tx postgres.Tx) error) error ExecInTxWithOptionsFn func(context.Context, uint, func(tx postgres.Tx) error, postgres.TxOptions) error CloseFn func(context.Context) error // contains filtered or unexported fields }
func (*Querier) ExecInTxWithOptions ¶ added in v0.3.0
type ReplicationConn ¶
type ReplicationConn struct { IdentifySystemFn func(ctx context.Context) (postgres.IdentifySystemResult, error) StartReplicationFn func(ctx context.Context, cfg postgres.ReplicationConfig) error SendStandbyStatusUpdateFn func(ctx context.Context, lsn uint64) error ReceiveMessageFn func(ctx context.Context) (*postgres.ReplicationMessage, error) CloseFn func(ctx context.Context) error }
func (*ReplicationConn) IdentifySystem ¶
func (m *ReplicationConn) IdentifySystem(ctx context.Context) (postgres.IdentifySystemResult, error)
func (*ReplicationConn) ReceiveMessage ¶
func (m *ReplicationConn) ReceiveMessage(ctx context.Context) (*postgres.ReplicationMessage, error)
func (*ReplicationConn) SendStandbyStatusUpdate ¶
func (m *ReplicationConn) SendStandbyStatusUpdate(ctx context.Context, lsn uint64) error
func (*ReplicationConn) StartReplication ¶
func (m *ReplicationConn) StartReplication(ctx context.Context, cfg postgres.ReplicationConfig) error
type Rows ¶ added in v0.3.0
type Rows struct { CloseFn func() ErrFn func() error FieldDescriptionsFn func() []pgconn.FieldDescription NextFn func(i uint) bool ScanFn func(dest ...any) error ValuesFn func() ([]any, error) RawValuesFn func() [][]byte // contains filtered or unexported fields }
func (*Rows) CommandTag ¶ added in v0.3.0
func (m *Rows) CommandTag() pgconn.CommandTag
func (*Rows) FieldDescriptions ¶ added in v0.3.0
func (m *Rows) FieldDescriptions() []pgconn.FieldDescription
type Tx ¶ added in v0.3.0
type Tx struct { QueryRowFn func(ctx context.Context, query string, args ...any) postgres.Row QueryFn func(ctx context.Context, query string, args ...any) (postgres.Rows, error) ExecFn func(ctx context.Context, query string, args ...any) (postgres.CommandTag, error) }
Click to show internal directories.
Click to hide internal directories.