scanner

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Map

func Map(rows *sql.Rows) (map[string]any, error)

Map scans the current row into a map.

func Maps

func Maps(rows *sql.Rows) ([]map[string]any, error)

Maps scans all remaining rows into slice of maps.

func Struct

func Struct(dest any, rows *sql.Rows) error

Struct scans current row into dest struct using column mapping.

func Structs added in v0.0.5

func Structs(dest any, rows *sql.Rows) error

Structs scans all remaining rows into the slice pointed to by dest. dest must be a pointer to a slice of structs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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