Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // based the os package error names: // https://pkg.go.dev/os#pkg-variables ErrExist = errors.New("database: already exists") ErrNotExist = errors.New("database: does not exist") // storage errors ErrRetry = errors.New("database: retry storage operation") ErrConflict = errors.New("database: conflict in storage operation") )
Functions ¶
Types ¶
type Conn ¶
type Conn interface { Exec(ctx context.Context, sql string, args ...interface{}) (pgconn.CommandTag, error) Query(ctx context.Context, sql string, args ...interface{}) (pgx.Rows, error) QueryRow(ctx context.Context, sql string, args ...interface{}) pgx.Row }
Common interface for pgx.Conn, pgx.Pool, pgx.Tx, etc https://github.com/jackc/pgx/issues/875
Click to show internal directories.
Click to hide internal directories.