Documentation ¶
Index ¶
- func Execute(ctx context.Context, query string, fn ExecuteFunc, rows ...interface{}) (affected int64, err error)
- func Query(ctx context.Context, query string, fn QueryScanRangeFn, args ...interface{}) (err error)
- func Scan(rows *sql.Rows, v interface{}) (err error)
- func SetLog(logger Log)
- func WithPreparable(parent context.Context, p Preparable) context.Context
- type ExecuteFunc
- type Log
- type NullJson
- type NullTime
- type Preparable
- type QueryScanRangeFn
- type Varchar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Query ¶
func Query(ctx context.Context, query string, fn QueryScanRangeFn, args ...interface{}) (err error)
func WithPreparable ¶
func WithPreparable(parent context.Context, p Preparable) context.Context
Types ¶
type ExecuteFunc ¶
type Preparable ¶
type QueryScanRangeFn ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.