package tests

import "github.com/ydb-platform/ydb-go-sdk/v3/internal/cmd/ydbgen/tests"

Index

Types

type Bar

type Bar [][][]string

func (*Bar) Scan

func (bs *Bar) Scan(res resultset.Result) (err error)

type Container

type Container struct {
	Struct  Foo
	Structs []Foo
	Bytes   []byte   `ydb:"types:list<uint32>,conv:cmp"`
	Strings []string `ydb:"types:list<string>"`
	String  []byte
}

func (*Container) QueryParameters

func (c *Container) QueryParameters() *table.QueryParameters

func (*Container) Scan

func (c *Container) Scan(res resultset.Result) (err error)

func (*Container) StructType

func (c *Container) StructType() types.Type

func (*Container) StructValue

func (c *Container) StructValue() types.Value

type ConvAssert

type ConvAssert struct {
	Int32ToByte byte  `ydb:"types:int32,conv:cmp"`
	Int16Int8   int8  `ydb:"types:int16,conv:cmp"`
	Uint64Int8  int8  `ydb:"types:uint64,conv:cmp"`
	Int8Int16   int16 `ydb:"types:int8,conv:cmp"`
	Uint32Uint  uint  `ydb:"types:uint32,conv:cmp"`
	Int32Int    int   `ydb:"types:int32,conv:cmp"`
	Int32Int64  int64 `ydb:"types:int32,conv:cmp"`
}

func (*ConvAssert) Scan

func (c *ConvAssert) Scan(res resultset.Result) (err error)

type Foo

type Foo struct {
	ID   string
	Ints []int32
}

func (*Foo) QueryParameters

func (f *Foo) QueryParameters() *table.QueryParameters

func (*Foo) Scan

func (f *Foo) Scan(res resultset.Result) (err error)

func (*Foo) StructType

func (f *Foo) StructType() types.Type

func (*Foo) StructValue

func (f *Foo) StructValue() types.Value

type Foos

type Foos []Foo

func (*Foos) Scan

func (fs *Foos) Scan(res resultset.Result) (err error)

type Optional

type Optional struct {
	Int64 int64  `ydb:"types:int16?,conv:cmp"`
	Str   string `ydb:"types:string"`
	Int32 int32
}

func (*Optional) QueryParameters

func (o *Optional) QueryParameters() *table.QueryParameters

func (*Optional) Scan

func (o *Optional) Scan(res resultset.Result) (err error)

func (*Optional) StructType

func (o *Optional) StructType() types.Type

func (*Optional) StructValue

func (o *Optional) StructValue() types.Value

type Params

type Params struct {
	Name          string
	Int16ToUint32 int16 `ydb:"types:uint32,conv:cmp"`
	IntToInt64    int   `ydb:"types:int64,conv:cmp"`
}

func (*Params) QueryParameters

func (p *Params) QueryParameters() *table.QueryParameters

type Times

type Times struct {
	Date time.Time `ydb:"types:Date?"`
}

func (*Times) QueryParameters

func (t *Times) QueryParameters() *table.QueryParameters

func (*Times) Scan

func (t *Times) Scan(res resultset.Result) (err error)

func (*Times) StructType

func (t *Times) StructType() types.Type

func (*Times) StructValue

func (t *Times) StructValue() types.Value

Source Files

all.go container.go container_ydbgen.go conv.go conv_ydbgen.go date.go date_ydbgen.go optional.go optional_ydbgen.go params.go params_ydbgen.go

Version
v3.0.2
Published
Oct 22, 2021
Platform
darwin/amd64
Imports
5 packages
Last checked
32 minutes ago

Tools for package owners.