result

package
v2.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Columns

func Columns(s *Scanner, it func(name string, typ internal.T))

func Reset

func Reset(s *Scanner, set *Ydb.ResultSet, columnNames ...string)

Types

type Scanner

type Scanner struct {
	// contains filtered or unexported fields
}

func PrepareScannerPerformanceTest added in v2.5.0

func PrepareScannerPerformanceTest(count int) *Scanner

func (*Scanner) Any deprecated

func (s *Scanner) Any() interface{}

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) AssertType deprecated

func (s *Scanner) AssertType(t ydb.Type) bool

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Bool deprecated

func (s *Scanner) Bool() (v bool)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) ColumnCount

func (s *Scanner) ColumnCount() int

ColumnCount returns number of columns in the current result set.

func (*Scanner) Date deprecated

func (s *Scanner) Date() (v uint32)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Datetime deprecated

func (s *Scanner) Datetime() (v uint32)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Decimal deprecated

func (s *Scanner) Decimal(t ydb.Type) (v [16]byte)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) DictIn deprecated

func (s *Scanner) DictIn() (size int)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) DictKey deprecated

func (s *Scanner) DictKey(i int)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) DictOut deprecated

func (s *Scanner) DictOut()

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) DictPayload deprecated

func (s *Scanner) DictPayload(i int)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) Double deprecated

func (s *Scanner) Double() (v float64)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) DyNumber deprecated

func (s *Scanner) DyNumber() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Err

func (s *Scanner) Err() error

Err returns error caused Scanner to be broken.

func (*Scanner) Float deprecated

func (s *Scanner) Float() (v float32)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) HasItems deprecated

func (s *Scanner) HasItems() bool

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) HasNextItem deprecated

func (s *Scanner) HasNextItem() bool

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) HasNextRow

func (s *Scanner) HasNextRow() bool

HasNextRow reports whether result row may be advanced.

It may be useful to call HasNextRow() instead of NextRow() to look ahead without advancing the result rows.

func (*Scanner) Int16 deprecated

func (s *Scanner) Int16() (v int16)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Int32 deprecated

func (s *Scanner) Int32() (v int32)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Int64 deprecated

func (s *Scanner) Int64() (v int64)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Int8 deprecated

func (s *Scanner) Int8() (v int8)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Interval deprecated

func (s *Scanner) Interval() (v int64)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) IsDecimal deprecated

func (s *Scanner) IsDecimal() bool

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) IsNull deprecated

func (s *Scanner) IsNull() bool

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) IsOptional deprecated

func (s *Scanner) IsOptional() bool

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) ItemCount

func (s *Scanner) ItemCount() int

ItemCount returns number of items in the current row.

func (*Scanner) JSON deprecated

func (s *Scanner) JSON() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) JSONDocument deprecated

func (s *Scanner) JSONDocument() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) ListIn deprecated

func (s *Scanner) ListIn() (size int)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) ListItem deprecated

func (s *Scanner) ListItem(i int)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) ListOut deprecated

func (s *Scanner) ListOut()

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) NextItem

func (s *Scanner) NextItem() (ok bool)

NextItem selects next item to parse in the current row. It returns false if there are no more items in the row.

Note that NextItem() differs from NextRow() and NextSet() – if it return false it fails the Result such that no further operations may be processed. That is, res.Err() becomes non-nil. Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) NextRow

func (s *Scanner) NextRow() bool

NextRow selects next row in the current result set. It returns false if there are no more rows in the result set.

func (*Scanner) Null deprecated

func (s *Scanner) Null()

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OBool deprecated

func (s *Scanner) OBool() (v bool)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) ODate deprecated

func (s *Scanner) ODate() (v uint32)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) ODatetime deprecated

func (s *Scanner) ODatetime() (v uint32)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) ODecimal deprecated

func (s *Scanner) ODecimal(t ydb.Type) (v [16]byte)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) ODouble deprecated

func (s *Scanner) ODouble() (v float64)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) ODyNumber deprecated

func (s *Scanner) ODyNumber() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OFloat deprecated

func (s *Scanner) OFloat() (v float32)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OInt16 deprecated

func (s *Scanner) OInt16() (v int16)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OInt32 deprecated

func (s *Scanner) OInt32() (v int32)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OInt64 deprecated

func (s *Scanner) OInt64() (v int64)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OInt8 deprecated

func (s *Scanner) OInt8() (v int8)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OInterval deprecated

func (s *Scanner) OInterval() (v int64)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OJSON deprecated

func (s *Scanner) OJSON() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OJSONDocument deprecated

func (s *Scanner) OJSONDocument() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OString deprecated

func (s *Scanner) OString() (v []byte)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OTimestamp deprecated

func (s *Scanner) OTimestamp() (v uint64)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OTzDate deprecated

func (s *Scanner) OTzDate() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OTzDatetime deprecated

func (s *Scanner) OTzDatetime() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OTzTimestamp deprecated

func (s *Scanner) OTzTimestamp() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OUTF8 deprecated

func (s *Scanner) OUTF8() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OUUID deprecated

func (s *Scanner) OUUID() (v [16]byte)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OUint16 deprecated

func (s *Scanner) OUint16() (v uint16)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OUint32 deprecated

func (s *Scanner) OUint32() (v uint32)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OUint64 deprecated

func (s *Scanner) OUint64() (v uint64)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OUint8 deprecated

func (s *Scanner) OUint8() (v uint8)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) OYSON deprecated

func (s *Scanner) OYSON() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Path deprecated

func (s *Scanner) Path() string

Deprecated: remove at next major release

func (*Scanner) ResultSetTruncated

func (s *Scanner) ResultSetTruncated() bool

ResultSetTruncated returns true if current result set has been truncated by server

func (*Scanner) RowCount

func (s *Scanner) RowCount() int

RowCount returns number of rows in the result set.

func (*Scanner) Scan added in v2.4.0

func (s *Scanner) Scan(values ...interface{}) error

Scan values. Input params - pointers to types:

bool
int8
uint8
int16
uint16
int32
uint32
int64
uint64
float32
float64
[]byte
[16]byte
string
time.Time
time.Duration
ydb.Value

For custom types implement sql.Scanner interface. For optional type use double pointer construction. For unknown types use interface type. Supported scanning byte arrays of various length. For complex yql types: Dict, List, Tuple and own specific scanning logic implement ydb.Scanner with UnmarshalYDB method See examples for more detailed information. Output param - Scanner error

func (*Scanner) ScanRaw deprecated added in v2.5.0

func (s *Scanner) ScanRaw(row ydb.CustomScanner) error

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) ScanWithDefaults added in v2.4.0

func (s *Scanner) ScanWithDefaults(values ...interface{}) error

ScanWithDefaults scan with default type values. Nil values applied as default value type Input params - pointers to types.

func (*Scanner) SeekItem

func (s *Scanner) SeekItem(name string) bool

SeekItem finds the column with given name in the result set and selects appropriate item to parse in the current row. Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) String deprecated

func (s *Scanner) String() (v []byte)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) StructField deprecated

func (s *Scanner) StructField(i int) (name string)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) StructIn deprecated

func (s *Scanner) StructIn() (size int)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) StructOut deprecated

func (s *Scanner) StructOut()

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) Timestamp deprecated

func (s *Scanner) Timestamp() (v uint64)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) TupleIn deprecated

func (s *Scanner) TupleIn() (size int)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) TupleItem deprecated

func (s *Scanner) TupleItem(i int)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) TupleOut deprecated

func (s *Scanner) TupleOut()

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) Type deprecated

func (s *Scanner) Type() ydb.Type

Deprecated: remove at next major release

func (*Scanner) TzDate deprecated

func (s *Scanner) TzDate() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) TzDatetime deprecated

func (s *Scanner) TzDatetime() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) TzTimestamp deprecated

func (s *Scanner) TzTimestamp() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) UTF8 deprecated

func (s *Scanner) UTF8() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) UUID deprecated

func (s *Scanner) UUID() (v [16]byte)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Uint16 deprecated

func (s *Scanner) Uint16() (v uint16)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Uint32 deprecated

func (s *Scanner) Uint32() (v uint32)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Uint64 deprecated

func (s *Scanner) Uint64() (v uint64)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Uint8 deprecated

func (s *Scanner) Uint8() (v uint8)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Unwrap deprecated

func (s *Scanner) Unwrap()

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) UnwrapDecimal deprecated

func (s *Scanner) UnwrapDecimal() (v [16]byte, precision, scale uint32)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) Value

func (s *Scanner) Value() ydb.Value

Value returns current item under scan as ydb.Value type. Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

func (*Scanner) Variant deprecated

func (s *Scanner) Variant() (name string, index uint32)

Deprecated: Use Scan and implement ydb.Scanner

func (*Scanner) WritePathTo deprecated

func (s *Scanner) WritePathTo(w io.Writer) (n int64, err error)

Deprecated: remove at next major release

func (*Scanner) YSON deprecated

func (s *Scanner) YSON() (v string)

Deprecated: Use Scan instead Method will be available only for RawValue in the next major release

Jump to

Keyboard shortcuts

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