rowscanner

package
v0.0.0-...-97057f0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidRowCount    = errors.New("rowscanner: invalid row count")
	ErrInvalidColumnCount = errors.New("rowscanner: invalid column count")
	ErrUnsupportedType    = errors.New("rowscanner: unsupported output type")
	ErrIsNil              = errors.New("rowscanner: output value must not be nil")
	ErrNotAPtr            = errors.New("rowscanner: output value must be a pointer")
)

Functions

func Scan

func Scan(output interface{}, rows Rows) error

Types

type Column

type Column interface {
	Name() string
	Get(value reflect.Value) reflect.Value
}

type RowFunc

type RowFunc func(columns []Column, values []interface{}) error

type Rows

type Rows interface {
	AltNameTag() string
	IterateUsing(fn RowFunc) error
}

Jump to

Keyboard shortcuts

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