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 ¶ added in v0.3.0
func (*DB[T]) ExecQueryer ¶ added in v0.3.0
func (v *DB[T]) ExecQueryer() *ExecQueryer[T]
func (*DB[T]) PrepareContextT ¶ added in v0.3.0
type ExecQueryer ¶ added in v0.3.0
type ExecQueryer[T any] struct { // contains filtered or unexported fields }
func (*ExecQueryer[T]) ExecContext ¶ added in v0.3.0
func (*ExecQueryer[T]) Execer ¶ added in v0.3.0
func (v *ExecQueryer[T]) Execer() *Execer[T]
func (*ExecQueryer[T]) QueryContext ¶ added in v0.3.0
func (*ExecQueryer[T]) QueryRow ¶ added in v0.3.0
func (v *ExecQueryer[T]) QueryRow(query string, args ...any) *sql.Row
func (*ExecQueryer[T]) QueryRowContext ¶ added in v0.3.0
func (*ExecQueryer[T]) Queryer ¶ added in v0.3.0
func (v *ExecQueryer[T]) Queryer() *Queryer[T]
type Execer ¶ added in v0.3.0
type Execer[T any] struct { // contains filtered or unexported fields }
type Queryer ¶ added in v0.3.0
type Queryer[T any] struct { // contains filtered or unexported fields }
func (*Queryer[T]) QueryContext ¶ added in v0.3.0
type Tx ¶ added in v0.3.0
func (*Tx[T]) ExecQueryer ¶ added in v0.3.0
func (v *Tx[T]) ExecQueryer() *ExecQueryer[T]
func (*Tx[T]) PrepareContextT ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.