types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAssertionFailed = errors.New("type assertion failed")
)

Functions

func Scan added in v1.0.23

func Scan[T Scanner](src any, s T) error

Types

type PgxConn

type PgxConn struct {
	PgxQuerier
}

type PgxQuerier

type PgxQuerier interface {
	pgxtype.Querier
	Get(ctx context.Context, dst any, query string, args ...any) error
	Select(ctx context.Context, dst any, query string, args ...any) error
}

type PgxTransactor

type PgxTransactor interface {
	pgx.Tx
}

type PgxTx

type PgxTx struct {
	PgxTransactor
}

func (*PgxTx) Get

func (p *PgxTx) Get(ctx context.Context, dst any, query string, args ...any) error

func (*PgxTx) Select

func (p *PgxTx) Select(ctx context.Context, dst any, query string, args ...any) error

type Scanner added in v1.0.23

type Scanner interface {
	Scan(src any) error
}

Jump to

Keyboard shortcuts

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