scan

package
v0.0.0-...-b19370d Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRows = fmt.Errorf("no rows")

Functions

func ScanIntoRows

func ScanIntoRows(scanner RowScanner, target rows.Rows) (rows.Rows, error)

func VisitRows

func VisitRows(scanner RowScanner, visitor VisitorFunc) error

Types

type MarkRestorer

type MarkRestorer interface {
	Mark()
	Restore()
}

type RowScanner

type RowScanner interface {
	Scan() (rows.Row, error)
}

type RowScannerFunc

type RowScannerFunc func() (rows.Row, error)

func (RowScannerFunc) Scan

func (f RowScannerFunc) Scan() (rows.Row, error)

type TIDScanner

type TIDScanner interface {
	Scan() (int64, error)
}

type TIDScannerFunc

type TIDScannerFunc func() (int64, error)

func (TIDScannerFunc) Scan

func (f TIDScannerFunc) Scan() (int64, error)

type VisitorFunc

type VisitorFunc func(row rows.Row) (bool, error)

Jump to

Keyboard shortcuts

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