Documentation
¶
Index ¶
- func GetRow[ROW any](ctx context.Context, query string, params ...interface{}) (row *ROW, err error)
- func GetRows[ROW any](ctx context.Context, query string, params ...interface{}) (rows []*ROW, err error)
- func SetTracer(tr tracing.Tracer)
- func Using(ctx context.Context, query DBContextFunction) error
- func UsingGetRow[ROW any](ctx context.Context, query string, params ...interface{}) (row *ROW, err error)
- func UsingGetRows[ROW any](ctx context.Context, query string, params ...interface{}) (rows []*ROW, err error)
- func WithTransaction(ctx context.Context, query DBContextWithTransactionFunction) error
- type DBContextFunction
- type DBContextWithTransactionFunction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UsingGetRow ¶
func UsingGetRows ¶
func WithTransaction ¶
func WithTransaction(ctx context.Context, query DBContextWithTransactionFunction) error
Types ¶
type DBContextFunction ¶
Click to show internal directories.
Click to hide internal directories.