Documentation ¶
Index ¶
- type Beginner
- type ClassicBeginner
- type ClassicExecer
- type ClassicPinger
- type ClassicPreparedExecer
- type ClassicPreparedQueryer
- type ClassicPreparer
- type ClassicQueryer
- type Closer
- type ContextBeginner
- type ContextExecer
- type ContextPinger
- type ContextPreparedExecer
- type ContextPreparedQueryer
- type ContextPreparer
- type ContextQueryer
- type DB
- type Execer
- type Pinger
- type PreparedExecer
- type PreparedQueryer
- type Preparer
- type Queryer
- type Stmt
- type Transactor
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beginner ¶
type Beginner interface { ClassicBeginner ContextBeginner }
Beginner represents the object that can begin a transaction.
type ClassicBeginner ¶
ClassicBeginner represents the object that can begin a transaction.
type ClassicExecer ¶
ClassicExecer represents the object that can execute SQL queries.
type ClassicPinger ¶
type ClassicPinger interface {
Ping() error
}
ClassicPinger represents the object that can verify a connection.
type ClassicPreparedExecer ¶
ClassicPreparedExecer represents the object that can execute prepared SQL queries.
type ClassicPreparedQueryer ¶
type ClassicPreparedQueryer interface { Query(args ...interface{}) (*sql.Rows, error) QueryRow(args ...interface{}) *sql.Row }
ClassicPreparedQueryer represents the object that can perform prepared SQL queries.
type ClassicPreparer ¶
ClassicPreparer represents the object that can create SQL prepared statements.
type ClassicQueryer ¶
type ClassicQueryer interface { Query(query string, args ...interface{}) (*sql.Rows, error) QueryRow(query string, args ...interface{}) *sql.Row }
ClassicQueryer represents the object that can perform SQL queries.
type Closer ¶
type Closer interface {
Close() error
}
Closer represents the object that can close a connection.
type ContextBeginner ¶
ContextBeginner represents the object that can begin a transaction.
type ContextExecer ¶
type ContextExecer interface {
ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
}
ContextExecer represents the object that can execute SQL queries.
type ContextPinger ¶
ContextPinger represents the object that can verify a connection.
type ContextPreparedExecer ¶
type ContextPreparedExecer interface {
ExecContext(ctx context.Context, args ...interface{}) (sql.Result, error)
}
ContextPreparedExecer represents the object that can execute prepared SQL queries.
type ContextPreparedQueryer ¶
type ContextPreparedQueryer interface { QueryContext(ctx context.Context, args ...interface{}) (*sql.Rows, error) QueryRowContext(ctx context.Context, args ...interface{}) *sql.Row }
ContextPreparedQueryer represents the object that can perform prepared SQL queries.
type ContextPreparer ¶
ContextPreparer represents the object that can create SQL prepared statements.
type ContextQueryer ¶
type ContextQueryer interface { QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row }
ContextQueryer represents the object that can perform SQL queries.
type Execer ¶
type Execer interface { ClassicExecer ContextExecer }
Execer represents the object that can execute SQL queries.
type Pinger ¶
type Pinger interface { ClassicPinger ContextPinger }
Pinger represents the object that can verify a connection.
type PreparedExecer ¶
type PreparedExecer interface { ClassicPreparedExecer ContextPreparedExecer }
PreparedExecer represents the object that can execute prepared SQL queries.
type PreparedQueryer ¶
type PreparedQueryer interface { ClassicPreparedQueryer ContextPreparedQueryer }
PreparedQueryer represents the object that can perform prepared SQL queries.
type Preparer ¶
type Preparer interface { ClassicPreparer ContextPreparer }
Preparer represents the object that can create SQL prepared statements.
type Queryer ¶
type Queryer interface { ClassicQueryer ContextQueryer }
Queryer represents the object that can perform SQL queries.
type Stmt ¶
type Stmt interface { PreparedQueryer PreparedExecer Stmt() *sql.Stmt }
Stmt wraps a *sql.Stmt object.
type Transactor ¶
Transactor represents the object that can commit or rollback a transaciton.