Documentation ¶
Index ¶
- func Columns(s *Scanner, it func(name string, typ internal.T))
- func Reset(s *Scanner, set *Ydb.ResultSet, columnNames ...string)
- type Scanner
- func (s *Scanner) Any() interface{}deprecated
- func (s *Scanner) AssertType(t ydb.Type) booldeprecated
- func (s *Scanner) Bool() (v bool)deprecated
- func (s *Scanner) ColumnCount() int
- func (s *Scanner) Date() (v uint32)deprecated
- func (s *Scanner) Datetime() (v uint32)deprecated
- func (s *Scanner) Decimal(t ydb.Type) (v [16]byte)deprecated
- func (s *Scanner) DictIn() (size int)deprecated
- func (s *Scanner) DictKey(i int)deprecated
- func (s *Scanner) DictOut()deprecated
- func (s *Scanner) DictPayload(i int)deprecated
- func (s *Scanner) Double() (v float64)deprecated
- func (s *Scanner) DyNumber() (v string)deprecated
- func (s *Scanner) Err() error
- func (s *Scanner) Float() (v float32)deprecated
- func (s *Scanner) HasItems() booldeprecated
- func (s *Scanner) HasNextItem() booldeprecated
- func (s *Scanner) HasNextRow() bool
- func (s *Scanner) Int16() (v int16)deprecated
- func (s *Scanner) Int32() (v int32)deprecated
- func (s *Scanner) Int64() (v int64)deprecated
- func (s *Scanner) Int8() (v int8)deprecated
- func (s *Scanner) Interval() (v int64)deprecated
- func (s *Scanner) IsDecimal() booldeprecated
- func (s *Scanner) IsNull() booldeprecated
- func (s *Scanner) IsOptional() booldeprecated
- func (s *Scanner) ItemCount() int
- func (s *Scanner) JSON() (v string)deprecated
- func (s *Scanner) JSONDocument() (v string)deprecated
- func (s *Scanner) ListIn() (size int)deprecated
- func (s *Scanner) ListItem(i int)deprecated
- func (s *Scanner) ListOut()deprecated
- func (s *Scanner) NextItem() (ok bool)deprecated
- func (s *Scanner) NextRow() bool
- func (s *Scanner) Null()deprecated
- func (s *Scanner) OBool() (v bool)deprecated
- func (s *Scanner) ODate() (v uint32)deprecated
- func (s *Scanner) ODatetime() (v uint32)deprecated
- func (s *Scanner) ODecimal(t ydb.Type) (v [16]byte)deprecated
- func (s *Scanner) ODouble() (v float64)deprecated
- func (s *Scanner) ODyNumber() (v string)deprecated
- func (s *Scanner) OFloat() (v float32)deprecated
- func (s *Scanner) OInt16() (v int16)deprecated
- func (s *Scanner) OInt32() (v int32)deprecated
- func (s *Scanner) OInt64() (v int64)deprecated
- func (s *Scanner) OInt8() (v int8)deprecated
- func (s *Scanner) OInterval() (v int64)deprecated
- func (s *Scanner) OJSON() (v string)deprecated
- func (s *Scanner) OJSONDocument() (v string)deprecated
- func (s *Scanner) OString() (v []byte)deprecated
- func (s *Scanner) OTimestamp() (v uint64)deprecated
- func (s *Scanner) OTzDate() (v string)deprecated
- func (s *Scanner) OTzDatetime() (v string)deprecated
- func (s *Scanner) OTzTimestamp() (v string)deprecated
- func (s *Scanner) OUTF8() (v string)deprecated
- func (s *Scanner) OUUID() (v [16]byte)deprecated
- func (s *Scanner) OUint16() (v uint16)deprecated
- func (s *Scanner) OUint32() (v uint32)deprecated
- func (s *Scanner) OUint64() (v uint64)deprecated
- func (s *Scanner) OUint8() (v uint8)deprecated
- func (s *Scanner) OYSON() (v string)deprecated
- func (s *Scanner) Path() stringdeprecated
- func (s *Scanner) ResultSetTruncated() bool
- func (s *Scanner) RowCount() int
- func (s *Scanner) Scan(values ...interface{}) error
- func (s *Scanner) ScanRaw(row ydb.CustomScanner) error
- func (s *Scanner) ScanWithDefaults(values ...interface{}) error
- func (s *Scanner) SeekItem(name string) booldeprecated
- func (s *Scanner) String() (v []byte)deprecated
- func (s *Scanner) StructField(i int) (name string)deprecated
- func (s *Scanner) StructIn() (size int)deprecated
- func (s *Scanner) StructOut()deprecated
- func (s *Scanner) Timestamp() (v uint64)deprecated
- func (s *Scanner) TupleIn() (size int)deprecated
- func (s *Scanner) TupleItem(i int)deprecated
- func (s *Scanner) TupleOut()deprecated
- func (s *Scanner) Type() ydb.Typedeprecated
- func (s *Scanner) TzDate() (v string)deprecated
- func (s *Scanner) TzDatetime() (v string)deprecated
- func (s *Scanner) TzTimestamp() (v string)deprecated
- func (s *Scanner) UTF8() (v string)deprecated
- func (s *Scanner) UUID() (v [16]byte)deprecated
- func (s *Scanner) Uint16() (v uint16)deprecated
- func (s *Scanner) Uint32() (v uint32)deprecated
- func (s *Scanner) Uint64() (v uint64)deprecated
- func (s *Scanner) Uint8() (v uint8)deprecated
- func (s *Scanner) Unwrap()deprecated
- func (s *Scanner) UnwrapDecimal() (v [16]byte, precision, scale uint32)deprecated
- func (s *Scanner) Value() ydb.Value
- func (s *Scanner) Variant() (name string, index uint32)deprecated
- func (s *Scanner) WritePathTo(w io.Writer) (n int64, err error)deprecated
- func (s *Scanner) YSON() (v string)deprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func PrepareScannerPerformanceTest ¶ added in v2.5.0
func (*Scanner) AssertType
deprecated
func (*Scanner) ColumnCount ¶
ColumnCount returns number of columns in the current result set.
func (*Scanner) DictPayload
deprecated
func (*Scanner) HasNextItem
deprecated
func (*Scanner) HasNextRow ¶
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) IsOptional
deprecated
func (*Scanner) JSONDocument
deprecated
func (*Scanner) NextRow ¶
NextRow selects next row in the current result set. It returns false if there are no more rows in the result set.
func (*Scanner) OJSONDocument
deprecated
func (*Scanner) OTimestamp
deprecated
func (*Scanner) OTzDatetime
deprecated
func (*Scanner) OTzTimestamp
deprecated
func (*Scanner) ResultSetTruncated ¶
ResultSetTruncated returns true if current result set has been truncated by server
func (*Scanner) Scan ¶ added in v2.4.0
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. See examples for more detailed information. Output param - Scanner error
func (*Scanner) ScanRaw ¶ added in v2.5.0
ScanRaw scan one row as struct Input parameter - ydb.CustomScanner interface To implement the interface: use ydbgen to generate method UnmarshalYDB see example containers
func (*Scanner) ScanWithDefaults ¶ added in v2.4.0
ScanWithDefaults scan with default type values. Nil values applied as default value type Input params - pointers to types.
func (*Scanner) StructField
deprecated
func (*Scanner) TzDatetime
deprecated
func (*Scanner) TzTimestamp
deprecated
func (*Scanner) UnwrapDecimal
deprecated
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 RawScanner in the next major release