helper

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CVsForInsertion added in v0.2.5

func CVsForInsertion[M builder.Model](ms ...M) (builder.Cols, []any)

CVsForInsertion builds insert columns and flattened values from models. Auto-increment columns are skipped.

func QueryAndScan added in v0.2.4

func QueryAndScan(ctx context.Context, e adaptor.Adaptor, f frag.Fragment, dst any) error

QueryAndScan executes f and scans the result into dst. If dst is nil, the query still runs and rows are discarded after close.

func Scan

func Scan(ctx context.Context, rows *sql.Rows, dst any) error

Scan scans rows into dst.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL