Versions in this module Expand all Collapse all v0 v0.0.1 Feb 25, 2022 Changes in this version + func Arg(args *[]interface{}, arg interface{}) string + func Exec(db dbExecContext, query string, params NamedParams) (sql.Result, error) + func ExecContext(ctx context.Context, db dbExecContext, query string, params NamedParams) (sql.Result, error) + func Query(db dbQueryContext, query string, params NamedParams) (*sql.Rows, error) + func QueryContext(ctx context.Context, db dbQueryContext, query string, params NamedParams) (*sql.Rows, error) + type MissingParameterError struct + Got NamedParams + Missing string + func (e MissingParameterError) Error() string + type NamedParams map[string]interface + func (np NamedParams) Args(params []string) ([]interface{}, error) + func (np NamedParams) Parse(query string) (string, []interface{}, error) + type ParameterCountError struct + Expected []string + Got NamedParams + func (e ParameterCountError) Error() string + type Row struct + func QueryRow(db dbQueryRowContext, query string, params NamedParams) *Row + func QueryRowContext(ctx context.Context, db dbQueryRowContext, query string, params NamedParams) *Row + func (r *Row) Err() error + func (r *Row) Scan(dest ...interface{}) error + type SelectColumns []struct + func (sc SelectColumns) ExprList() string + func (sc SelectColumns) Scan(row interface{ ... }) error + type Stmt struct + func Prepare(db dbPrepareContext, query string) (*Stmt, error) + func PrepareContext(ctx context.Context, db dbPrepareContext, query string) (*Stmt, error) + func (s *Stmt) Close() error + func (s *Stmt) Exec(args NamedParams) (sql.Result, error) + func (s *Stmt) ExecContext(ctx context.Context, named NamedParams) (sql.Result, error) + func (s *Stmt) Query(args NamedParams) (*sql.Rows, error) + func (s *Stmt) QueryContext(ctx context.Context, named NamedParams) (*sql.Rows, error) + func (s *Stmt) QueryRow(args NamedParams) *Row + func (s *Stmt) QueryRowContext(ctx context.Context, named NamedParams) *Row