scanner

package
v0.0.0-...-3d6a6cf Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanJSONToStructList

func ScanJSONToStructList[T any](list *[]*T) any

ScanJSONToStructList scans a JSON array into a slice of structs.

func ScanLookupList

func ScanLookupList(value *[]*_go.Lookup) any

func ScanRowLookup

func ScanRowLookup(value **_go.Lookup) any

func ScanText

func ScanText(value *string) any

func ScanTimestamp

func ScanTimestamp(ref *int64) any

Types

type ScanFunc

type ScanFunc func(src any) error

func (ScanFunc) Scan

func (s ScanFunc) Scan(src any) error

type TextDecoder

type TextDecoder func(src []byte) error

func GetCompositeTextScanFunction

func GetCompositeTextScanFunction[T any](subScanPlan []func(*T) any, into *[]*T, callback func() error) TextDecoder

func (TextDecoder) DecodeText

func (dec TextDecoder) DecodeText(_ *pgtype.ConnInfo, src []byte) error

func (TextDecoder) Scan

func (dec TextDecoder) Scan(src any) error

Jump to

Keyboard shortcuts

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