Help us shape the future of Go! Take the 2026 Go Developer Survey

scan

package
v1.20.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assign

func Assign(target reflect.Value, source any) error

Assign assigns driver values directly, preserving scanners and the JSON and timestamp conversions supported by database reads.

func Attributes

func Attributes(attributes map[string]any, dest any, mapper *reflectx.Mapper) error

Attributes also accepts nested Go maps and collections produced by factories. It shares cached field paths with row mapping; SQL rows use Map or Row.

func Map

func Map(row map[string]any, dest any, mapper *reflectx.Mapper) error

Map scans a materialized row with the same mapping and conversions as Row.

func Row

func Row(rows *sql.Rows, columns []string, dest any, mapper *reflectx.Mapper) error

Row scans a SQL row into fields selected by the mapper's cached metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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