Documentation
¶
Index ¶
- type DB
- func (v *DB[T]) BeginT() (*Tx[T], error)
- func (v *DB[T]) BeginTxT(ctx context.Context, opts *sql.TxOptions) (*Tx[T], error)
- func (v *DB[T]) ExecQueryer() *ExecQueryer[T]
- func (v *DB[T]) Execer() *Execer[T]
- func (v *DB[T]) PrepareContextT(ctx context.Context, query string) (*Stmt[T], error)
- func (v *DB[T]) PrepareT(query string) (*Stmt[T], error)
- func (v *DB[T]) Queryer() *Queryer[T]
- type ExecQueryer
- func (v *ExecQueryer[T]) Exec(query string, args ...any) (sql.Result, error)
- func (v *ExecQueryer[T]) ExecContext(ctx context.Context, query string, args ...any) (sql.Result, error)
- func (v *ExecQueryer[T]) Execer() *Execer[T]
- func (v *ExecQueryer[T]) Query(query string, args ...any) (*sql.Rows, error)
- func (v *ExecQueryer[T]) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
- func (v *ExecQueryer[T]) QueryRow(query string, args ...any) *sql.Row
- func (v *ExecQueryer[T]) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
- func (v *ExecQueryer[T]) Queryer() *Queryer[T]
- type Execer
- type Queryer
- func (v *Queryer[T]) Query(query string, args ...any) (*sql.Rows, error)
- func (v *Queryer[T]) QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error)
- func (v *Queryer[T]) QueryRow(query string, args ...any) *sql.Row
- func (v *Queryer[T]) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row
- type Stmt
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
func (*DB[T]) ExecQueryer ¶
func (v *DB[T]) ExecQueryer() *ExecQueryer[T]
func (*DB[T]) PrepareContextT ¶
type ExecQueryer ¶
type ExecQueryer[T any] struct { // contains filtered or unexported fields }
func (*ExecQueryer[T]) ExecContext ¶
func (*ExecQueryer[T]) Execer ¶
func (v *ExecQueryer[T]) Execer() *Execer[T]
func (*ExecQueryer[T]) QueryContext ¶
func (*ExecQueryer[T]) QueryRow ¶
func (v *ExecQueryer[T]) QueryRow(query string, args ...any) *sql.Row
func (*ExecQueryer[T]) QueryRowContext ¶
func (*ExecQueryer[T]) Queryer ¶
func (v *ExecQueryer[T]) Queryer() *Queryer[T]
type Queryer ¶
type Queryer[T any] struct { // contains filtered or unexported fields }
func (*Queryer[T]) QueryContext ¶
type Tx ¶
func (*Tx[T]) ExecQueryer ¶
func (v *Tx[T]) ExecQueryer() *ExecQueryer[T]
func (*Tx[T]) PrepareContextT ¶
Click to show internal directories.
Click to hide internal directories.