Documentation ¶
Overview ¶
Package sql implements generic.Executer for the stdlib sql db
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executer ¶
type Executer struct {
// contains filtered or unexported fields
}
Executer implements the generic.Executer interface for a stlib sql db
func NewExecuter ¶
func NewExecuter(db *sql.DB, opts ...ExecuterOption) Executer
NewExecuter creates a new Executer
type ExecuterOption ¶
type ExecuterOption func(*Executer)
ExecuterOption configures the Executer instance
func WithTxOptions ¶
func WithTxOptions(opts *sql.TxOptions) ExecuterOption
WithTxOptions allows setting the TxOptions to use when opening a new transaction
Click to show internal directories.
Click to hide internal directories.