Documentation ¶
Overview ¶
Package crdb implements generic.Executer for cockroachdb
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 cockroachdb with sqlx
func NewExecuter ¶
func NewExecuter(db *sqlx.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.