Versions in this module Expand all Collapse all v0 v0.1.0 Jan 24, 2026 Changes in this version + var ErrNoRows = errors.New("no rows found") + func BindAny(stmt *sqlite.Stmt, i int, arg any) + func Borrow(ctx context.Context, pool *Pool, fn func(conn *Conn) error) error + func DoTx(ctx context.Context, pool *Pool, fn func(conn *Conn) error) error + func DoTx1[T any](ctx context.Context, pool *Pool, fn func(conn *Conn) (T, error)) (T, error) + func DoTx2[T1, T2 any](ctx context.Context, pool *Pool, fn func(conn *Conn) (T1, T2, error)) (T1, T2, error) + func DoTxRO(ctx context.Context, pool *Pool, fn func(conn *Conn) error) error + func Exec(conn *Conn, query string, args ...any) error + func GetOne[T any](conn *Conn, dst *T, scan ScanFunc[T], query string, args ...any) (bool, error) + func Get[T any](conn *Conn, dest *T, query string, args ...any) error + func IsErrNoRows(err error) bool + func ScanInt64(stmt *sqlite.Stmt, dst *int64) error + func ScanString(stmt *sqlite.Stmt, dst *string) error + func Select[T any](conn *Conn, scan func(stmt *sqlite.Stmt, dst *T) error, query string, ...) iter.Seq2[T, error] + func Vacuum(conn *Conn) error + func WALCheckpoint(conn *Conn) error + type Conn = sqlite.Conn + type Iterator struct + func NewIterator[T any](x iter.Seq2[T, error]) Iterator[T] + func (it *Iterator[T]) Close() error + func (it *Iterator[T]) Drop() + func (it *Iterator[T]) Next(ctx context.Context, dst []T) (int, error) + type Pool = sqlitex.Pool + func NewTestPool(t testing.TB) *Pool + func OpenPool(p string) (*Pool, error) + type ScanFunc = func(stmt *sqlite.Stmt, dst *T) error