Documentation ¶
Index ¶
- func Exec(db *sql.DB, query string, args ...any) error
- func ExecContext(ctx context.Context, db *sql.DB, query string, args ...any) error
- func Query[T any](db *sql.DB, callback func(rows *sql.Rows, v *T) error, query string, ...) ([]T, error)
- func QueryContext[T any](ctx context.Context, db *sql.DB, scanner func(rows *sql.Rows, v *T) error, ...) ([]T, error)
- func QueryRow(db *sql.DB, scanner func(row *sql.Row) error, query string, args ...any) error
- func QueryRowContext(ctx context.Context, db *sql.DB, scanner func(row *sql.Row) error, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecContext ¶
func QueryContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.