Documentation
¶
Index ¶
- Variables
- func Create(ctx context.Context, database *sql.DB, q string, args ...any) (int64, error)
- func FindColumns[T Column](ctx context.Context, database *sql.DB, q string, args ...any) ([]T, error)
- func FindRows[T any, PT Row[T]](ctx context.Context, database *sql.DB, q string, args ...any) ([]T, error)
- func GetColumn[T Column](ctx context.Context, database *sql.DB, q string, args ...any) (T, error)
- func GetRow[T any, PT Row[T]](ctx context.Context, database *sql.DB, q string, args ...any) (T, error)
- func InArgs[T Column](tt []T) (string, []any)
- type Column
- type DAL
- type Row
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("record not found")
Functions ¶
func FindColumns ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.