package scanner

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/query/scanner"

Index

Variables

var (
	ErrColumnsNotFoundInRow   = errors.New("some columns not found in row")
	ErrFieldsNotFoundInStruct = errors.New("some fields not found in struct")
)

Functions

func NamedRef

func NamedRef(columnName string, destinationValueReference interface{}) (dst namedDestination)

func WithAllowMissingColumnsFromSelect

func WithAllowMissingColumnsFromSelect() allowMissingColumnsFromSelect

func WithAllowMissingFieldsInStruct

func WithAllowMissingFieldsInStruct() allowMissingFieldsInStruct

func WithTagName

func WithTagName(name string) tagName

Types

type Data

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

func NewData

func NewData(columns []*Ydb.Column, values []*Ydb.Value) *Data

func (Data) Values

func (d Data) Values() []value.Value

type IndexedScanner

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

func Indexed

func Indexed(data *Data) IndexedScanner

func (IndexedScanner) Scan

func (s IndexedScanner) Scan(dst ...interface{}) (err error)

type NamedDestination

type NamedDestination interface {
	Name() string
	Ref() interface{}
}

type NamedScanner

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

func Named

func Named(data *Data) NamedScanner

func (NamedScanner) ScanNamed

func (s NamedScanner) ScanNamed(dst ...NamedDestination) (err error)

type ScanStructOption

type ScanStructOption interface {
	// contains filtered or unexported methods
}

type StructScanner

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

func Struct

func Struct(data *Data) StructScanner

func (StructScanner) ScanStruct

func (s StructScanner) ScanStruct(dst interface{}, opts ...ScanStructOption) (err error)

Source Files

data.go errors.go indexed.go named.go struct.go struct_options.go

Version
v3.114.0
Published
Aug 14, 2025
Platform
windows/amd64
Imports
7 packages
Last checked
8 hours ago

Tools for package owners.