frmpg

package
v0.0.0-...-ffce114 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRecordFound = errors.New("no record found by QuerySingle")

Functions

func DoTxDefault

func DoTxDefault(db *pgxpool.Pool, f func(tx pgx.Tx) error) (err error)

func QueryMulti

func QueryMulti(db pgxtype.Querier, result interface{}, ctx context.Context, sql string, params ...interface{}) error

allowed parameter type: *[]struct{} or *[]*struct{}

func QuerySingle

func QuerySingle(db pgxtype.Querier, result interface{}, ctx context.Context, sql string, params ...interface{}) error

allowed parameter type: *struct{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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