Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AfterCallback ¶
AfterCallback is a kind of function that can be called after a query was executed.
type BeforeCallback ¶
BeforeCallback is a kind of function that can be called before a query is executed.
type Conn ¶
type Conn interface {
// Begin executes a transaction.
Begin(context.Context, func(Tx) error) error
// BeginCustom executes a transaction with provided options.
BeginCustom(context.Context, func(Tx) error, *sql.TxOptions) error
// Close closes the connection.
Close() error
// DB returns the underlying DB object.
DB() *sql.DB
// Before adds a callback function that would be called before a query is
// executed.
Before(BeforeCallback)
// After adds a callback function that would be called after a query was
// executed.
After(AfterCallback)
// contains filtered or unexported methods
}
Conn represents database connection.
type ExecChain ¶
type ExecChain interface {
// contains filtered or unexported methods
}
ExecChain ...
type ExecResult ¶
type ExecResult interface {
Error() error
LastInsertID() int64
RowsAffected() int64
Result() sql.Result
Then() ExecChain
}
ExecResult ...
Click to show internal directories.
Click to hide internal directories.