Versions in this module Expand all Collapse all v1 v1.2.0 Feb 6, 2026 Changes in this version + func AnnotateStmt(query, marginalia string) string + type DB struct + Marginalia string + func Open(driverName, dataSourceName, marginalia string) (*DB, error) + func (db DB) Begin() (*Tx, error) + func (db DB) Exec(query string, args ...interface{}) (sqlorig.Result, error) + func (db DB) ExecContext(ctx context.Context, query string, args ...interface{}) (sqlorig.Result, error) + func (db DB) Prepare(query string) (*sqlorig.Stmt, error) + func (db DB) PrepareContext(ctx context.Context, query string) (*sqlorig.Stmt, error) + func (db DB) Query(query string, args ...interface{}) (*sqlorig.Rows, error) + func (db DB) QueryContext(ctx context.Context, query string, args ...interface{}) (*sqlorig.Rows, error) + func (db DB) QueryMySQLVersion() (string, error) + func (db DB) QueryRow(query string, args ...interface{}) *sqlorig.Row + func (db DB) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sqlorig.Row + type Tx struct + func (tx Tx) Exec(query string, args ...interface{}) (sqlorig.Result, error) + func (tx Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (sqlorig.Result, error) + func (tx Tx) Prepare(query string) (*sqlorig.Stmt, error) + func (tx Tx) PrepareContext(ctx context.Context, query string) (*sqlorig.Stmt, error) + func (tx Tx) Query(query string, args ...interface{}) (*sqlorig.Rows, error) + func (tx Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sqlorig.Rows, error) + func (tx Tx) QueryRow(query string, args ...interface{}) *sqlorig.Row + func (tx Tx) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sqlorig.Row