named

package
v3.67.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Type

type Type uint8
const (
	TypeUnknown Type = iota
	TypeRequired
	TypeOptional
	TypeOptionalWithUseDefault
)

type Value

type Value struct {
	Name  string
	Value interface{}
	Type  Type
}

func Optional

func Optional(columnName string, destination interface{}) Value

Optional makes an object with destination address for column value with name columnName

If column value is NULL, then ScanNamed will write a nil into destination

Warning: value must double-pointed data destination

func OptionalWithDefault

func OptionalWithDefault(columnName string, destinationValueReference interface{}) Value

OptionalWithDefault makes an object with destination address for column value with name columnName

If scanned YDB value is NULL - default type value will be applied to value destination Warning: value must single-pointed data destination

func Required

func Required(columnName string, destinationValueReference interface{}) Value

Required makes an object with destination address for column value with name columnName

Warning: value must single-pointed data destination

Jump to

Keyboard shortcuts

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