Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Beginner ¶
type Beginner interface {
ttn.Beginner
Executor(ctx context.Context) Executor
TxEnabled(ctx context.Context) bool
WithTx(
ctx context.Context,
withTx func(exec Executor) error,
opts ...ttn.Option,
) error
}
func NewBeginner ¶
type Executor ¶
type Executor interface {
Exec(query string, args ...any) (sql.Result, error)
ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
Query(query string, args ...any) (*sql.Rows, error)
QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
QueryRow(query string, args ...any) *sql.Row
QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
Prepare(query string) (*sql.Stmt, error)
PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
}
Click to show internal directories.
Click to hide internal directories.