Versions in this module Expand all Collapse all v0 v0.0.2 Feb 16, 2022 Changes in this version + var ErrNilRows = errors.New("sqlpp: nil rows") + var ErrNilScanner = errors.New("sqlpp: nil scanner") + type DB struct + func NewMySQL(db *sql.DB) *DB + func NewPostgreSQL(db *sql.DB) *DB + func (sqlpp *DB) Args(args ...interface{}) []interface{} + func (sqlpp *DB) Close() error + func (sqlpp *DB) Exec(query string, args ...interface{}) (sql.Result, error) + func (sqlpp *DB) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) + func (sqlpp *DB) Query(query string, args []interface{}, scan Scanner) ([]interface{}, error) + func (sqlpp *DB) QueryContext(ctx context.Context, query string, args []interface{}, scan Scanner) ([]interface{}, error) + func (sqlpp *DB) QueryRow(query string, args []interface{}, dest ...interface{}) error + func (sqlpp *DB) QueryRowContext(ctx context.Context, query string, args []interface{}, dest ...interface{}) error + type Scanner func(*sql.Rows) (interface{}, error)