instrumentation

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPGDumpAllFn added in v0.7.9

func NewPGDumpAllFn(pgdumpallFn pglib.PGDumpAllFn, instrumentation *otel.Instrumentation) pglib.PGDumpAllFn

func NewPGDumpFn

func NewPGDumpFn(pgdumpFn pglib.PGDumpFn, instrumentation *otel.Instrumentation) pglib.PGDumpFn

func NewPGRestoreFn

func NewPGRestoreFn(pgrestoreFn pglib.PGRestoreFn, instrumentation *otel.Instrumentation) pglib.PGRestoreFn

func NewQuerier

func NewQuerier(q pglib.Querier, instrumentation *otel.Instrumentation) (pglib.Querier, error)

func NewTx

func NewTx(t pglib.Tx, instrumentation *otel.Instrumentation) pglib.Tx

Types

type PGDumpRestore

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

func (*PGDumpRestore) PGDump

func (i *PGDumpRestore) PGDump(ctx context.Context, opts pglib.PGDumpOptions) (dump []byte, err error)

func (*PGDumpRestore) PGDumpAll added in v0.7.9

func (i *PGDumpRestore) PGDumpAll(ctx context.Context, opts pglib.PGDumpAllOptions) (dump []byte, err error)

func (*PGDumpRestore) PGRestore

func (i *PGDumpRestore) PGRestore(ctx context.Context, opts pglib.PGRestoreOptions, dump []byte) (out string, err error)

type Querier

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

func (*Querier) Close

func (i *Querier) Close(ctx context.Context) (err error)

func (*Querier) CopyFrom

func (i *Querier) CopyFrom(ctx context.Context, tableName string, columnNames []string, srcRows [][]any) (rowCount int64, err error)

func (*Querier) Exec

func (i *Querier) Exec(ctx context.Context, query string, args ...any) (tag pglib.CommandTag, err error)

func (*Querier) ExecInTx

func (i *Querier) ExecInTx(ctx context.Context, fn func(tx pglib.Tx) error) (err error)

func (*Querier) ExecInTxWithOptions

func (i *Querier) ExecInTxWithOptions(ctx context.Context, fn func(tx pglib.Tx) error, txOpts pglib.TxOptions) (err error)

func (*Querier) Ping

func (i *Querier) Ping(ctx context.Context) (err error)

func (*Querier) Query

func (i *Querier) Query(ctx context.Context, query string, args ...any) (rows pglib.Rows, err error)

func (*Querier) QueryRow

func (i *Querier) QueryRow(ctx context.Context, query string, args ...any) pglib.Row

type Tx

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

func (*Tx) CopyFrom added in v0.6.2

func (i *Tx) CopyFrom(ctx context.Context, tableName string, columnNames []string, srcRows [][]any) (rowCount int64, err error)

func (*Tx) Exec

func (i *Tx) Exec(ctx context.Context, query string, args ...any) (tag pglib.CommandTag, err error)

func (*Tx) Query

func (i *Tx) Query(ctx context.Context, query string, args ...any) (rows pglib.Rows, err error)

func (*Tx) QueryRow

func (i *Tx) QueryRow(ctx context.Context, query string, args ...any) pglib.Row

Jump to

Keyboard shortcuts

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