compat

package
v4.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginTx

func BeginTx(p TxStarter, ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)

func ExecContext

func ExecContext(p Execer, ctx context.Context, query string, args []interface{}) (sql.Result, error)

func PrepareContext

func PrepareContext(p Preparer, ctx context.Context, query string) (*sql.Stmt, error)

func PreparedExecContext

func PreparedExecContext(p PreparedExecer, ctx context.Context, args []interface{}) (sql.Result, error)

func PreparedQueryContext

func PreparedQueryContext(p PreparedQueryer, ctx context.Context, args []interface{}) (*sql.Rows, error)

func PreparedQueryRowContext

func PreparedQueryRowContext(p PreparedRowQueryer, ctx context.Context, args []interface{}) *sql.Row

func QueryContext

func QueryContext(p Queryer, ctx context.Context, query string, args []interface{}) (*sql.Rows, error)

func QueryRowContext

func QueryRowContext(p RowQueryer, ctx context.Context, query string, args []interface{}) *sql.Row

Types

type Execer

type Execer interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
}

type PreparedExecer

type PreparedExecer interface {
	ExecContext(context.Context, ...interface{}) (sql.Result, error)
}

type PreparedQueryer

type PreparedQueryer interface {
	QueryContext(context.Context, ...interface{}) (*sql.Rows, error)
}

type PreparedRowQueryer

type PreparedRowQueryer interface {
	QueryRowContext(context.Context, ...interface{}) *sql.Row
}

type Preparer

type Preparer interface {
	PrepareContext(context.Context, string) (*sql.Stmt, error)
}

type Queryer

type Queryer interface {
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
}

type RowQueryer

type RowQueryer interface {
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type TxStarter

type TxStarter interface {
	BeginTx(context.Context, *sql.TxOptions) (*sql.Tx, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL