tests

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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 *table.Result) (err error)

type Container

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

func (*Container) QueryParameters

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

func (*Container) Scan

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

func (*Container) StructType

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

func (*Container) StructValue

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

type ConvAssert

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

func (*ConvAssert) Scan

func (c *ConvAssert) Scan(res *table.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 *table.Result) (err error)

func (*Foo) StructType

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

func (*Foo) StructValue

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

type Foos

type Foos []Foo

func (*Foos) Scan

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

type Optional

type Optional struct {
	Int64 opt.Int64  `ydb:"type:int16?,conv:assert"`
	Str   opt.String `ydb:"type:string"`
	Int32 int32
}

func (*Optional) QueryParameters

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

func (*Optional) Scan

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

func (*Optional) StructType

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

func (*Optional) StructValue

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

type Params

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

func (*Params) QueryParameters

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

type Times

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

func (*Times) QueryParameters

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

func (*Times) Scan

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

func (*Times) StructType

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

func (*Times) StructValue

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

Jump to

Keyboard shortcuts

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