tests

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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

Jump to

Keyboard shortcuts

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