scanner

package
v0.0.0-...-0d8370d Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package scanner GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Scan

func Scan(ctx context.Context, rows *sql.Rows, v interface{}) error

Types

type RecvFunc

type RecvFunc[M any] func(ctx context.Context, recv func(v *M) error) error

func (RecvFunc[M]) Items

func (recv RecvFunc[M]) Items(c context.Context) iter.Seq2[*M, error]

func (*RecvFunc[M]) RuntimeDoc

func (*RecvFunc[M]) RuntimeDoc(names ...string) ([]string, bool)

type ScanIterator

type ScanIterator interface {
	// New a ptr value for scan
	New() any
	// Next For receive scanned value
	Next(v any) error
}

func Recv

func Recv[T any](next func(v *T) error) ScanIterator

func ScanIteratorFor

func ScanIteratorFor(v any) (ScanIterator, error)

type SingleScanIterator

type SingleScanIterator struct {
	// contains filtered or unexported fields
}

func (*SingleScanIterator) MustHasRecord

func (s *SingleScanIterator) MustHasRecord() bool

func (*SingleScanIterator) New

func (s *SingleScanIterator) New() any

func (*SingleScanIterator) Next

func (s *SingleScanIterator) Next(v any) error

type SliceScanIterator

type SliceScanIterator struct {
	// contains filtered or unexported fields
}

func (*SliceScanIterator) New

func (s *SliceScanIterator) New() any

func (*SliceScanIterator) Next

func (s *SliceScanIterator) Next(v any) error

Directories

Path Synopsis
Package nullable GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Package nullable GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Jump to

Keyboard shortcuts

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