package named

import "github.com/ydb-platform/ydb-go-sdk/v3/table/result/named"

Index

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(key string, value interface{}) Value

Optional returns Value with key as column name and value as destination Warning: value must double-pointed data destination

func OptionalWithDefault

func OptionalWithDefault(key string, value interface{}) Value

OptionalWithDefault returns Value with key as column name and value as destination 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(key string, value interface{}) Value

Required returns Value with key as column name and value as destination Warning: value must single-pointed data destination

Source Files

named.go

Version
v3.37.6
Published
Sep 6, 2022
Platform
linux/amd64
Last checked
3 minutes ago

Tools for package owners.