Versions in this module Expand all Collapse all v0 v0.2.0 Feb 2, 2025 v0.1.0 Jan 30, 2025 Changes in this version + const StructTag + var ErrNilUnderlyingSlice = errors.New("underlying slice is nil") + var ErrSliceConversionUnsupported = errors.New("slice conversion is unsupported") + var ErrSrcIsNotArray = errors.New("src is not an array") + var ErrStructRequired = errors.New("type is not a struct") + var PreAllocCollection uint = 64 + func CollectRow[T any](row *sql.Row, sc RowCollector[T]) (T, bool, error) + func CollectRowsKV[K comparable, V any](rows *sql.Rows, sc RowColsCollectorKV[K, V]) (map[K]V, error) + func CollectRows[T any](rows *sql.Rows, sc RowColsCollector[T]) ([]T, error) + func DirectCollectorRowColsKV[K comparable, V any](row RowCols) (K, V, error) + func DirectCollectorRowCols[T any](row RowCols) (T, error) + func DirectCollectorRow[T any](row Row) (T, error) + func StructPosCollectorRowColsKV[K comparable, V any](row RowCols) (K, V, error) + func StructPosCollectorRowCols[T any](row RowCols) (T, error) + func StructPosCollectorRow[T any](row Row) (T, error) + func StructTagCollectorRowColsKV[K comparable, V any](row RowCols) (K, V, error) + func StructTagCollectorRowCols[T any](row RowCols) (T, error) + type Row interface + Scan func(...interface{}) error + type RowCollector func(row Row) (T, error) + type RowCols interface + Columns func() ([]string, error) + type RowColsCollector func(row RowCols) (T, error) + type RowColsCollectorKV func(row RowCols) (K, V, error) + type Slice struct + func NewSlice[T any](values *[]T) Slice + func (s Slice) Scan(src any) error