Documentation
¶
Index ¶
- func ParseTimestampTz(value string) (driver.Value, error)
- type ColumnReader
- func (r *ColumnReader) ColumnTypeDatabaseTypeName(index int) string
- func (r *ColumnReader) ColumnTypeLength(index int) (length int64, ok bool)
- func (r *ColumnReader) ColumnTypeNullable(index int) (nullable, ok bool)
- func (r *ColumnReader) ColumnTypePrecisionScale(index int) (precision, scale int64, ok bool)
- func (r *ColumnReader) ColumnTypeScanType(index int) reflect.Type
- func (r *ColumnReader) Columns() []string
- type ExtendableRows
- type FireboltArray
- type FireboltDecimal
- type FireboltNullArray
- type FireboltNullDecimal
- type FireboltNullStruct
- type FireboltStruct
- type InMemoryRows
- type NullBytes
- type StreamRows
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ColumnReader ¶
type ColumnReader struct {
// contains filtered or unexported fields
}
func (*ColumnReader) ColumnTypeDatabaseTypeName ¶
func (r *ColumnReader) ColumnTypeDatabaseTypeName(index int) string
func (*ColumnReader) ColumnTypeLength ¶
func (r *ColumnReader) ColumnTypeLength(index int) (length int64, ok bool)
func (*ColumnReader) ColumnTypeNullable ¶
func (r *ColumnReader) ColumnTypeNullable(index int) (nullable, ok bool)
func (*ColumnReader) ColumnTypePrecisionScale ¶
func (r *ColumnReader) ColumnTypePrecisionScale(index int) (precision, scale int64, ok bool)
func (*ColumnReader) ColumnTypeScanType ¶
func (r *ColumnReader) ColumnTypeScanType(index int) reflect.Type
func (*ColumnReader) Columns ¶
func (r *ColumnReader) Columns() []string
Columns returns a list of column names in the current row set
type ExtendableRows ¶
type FireboltArray ¶ added in v1.7.0
type FireboltArray []interface{}
func (*FireboltArray) Scan ¶ added in v1.7.0
func (fa *FireboltArray) Scan(src interface{}) error
Scan implements the sql.Scanner interface.
type FireboltDecimal ¶ added in v1.7.0
type FireboltNullArray ¶ added in v1.7.0
type FireboltNullArray struct {
Array FireboltArray
Valid bool
}
func (*FireboltNullArray) Scan ¶ added in v1.7.0
func (fna *FireboltNullArray) Scan(src interface{}) error
Scan implements the sql.Scanner interface.
type FireboltNullDecimal ¶ added in v1.7.0
type FireboltNullDecimal struct {
decimal.NullDecimal
}
func (*FireboltNullDecimal) Compose ¶ added in v1.7.0
func (fnd *FireboltNullDecimal) Compose(form byte, negative bool, coefficient []byte, exponent int32) error
Compose constructs an ExtendedDecimal from the given form, sign, coefficient, and exponent.
func (*FireboltNullDecimal) Decompose ¶ added in v1.7.0
Decompose extracts the decimal value into form, sign, coefficient, and exponent.
func (FireboltNullDecimal) GetDecimal ¶ added in v1.7.0
func (fnd FireboltNullDecimal) GetDecimal() *decimal.Decimal
GetDecimal returns the decimal value if it is valid, otherwise returns nil.
type FireboltNullStruct ¶ added in v1.7.0
type FireboltNullStruct struct {
Struct FireboltStruct
Valid bool
}
func (*FireboltNullStruct) Scan ¶ added in v1.7.0
func (fns *FireboltNullStruct) Scan(src interface{}) error
type FireboltStruct ¶ added in v1.7.0
type FireboltStruct map[string]interface{}
func (*FireboltStruct) Scan ¶ added in v1.7.0
func (fs *FireboltStruct) Scan(src interface{}) error
type InMemoryRows ¶
type InMemoryRows struct {
ColumnReader
// contains filtered or unexported fields
}
func (*InMemoryRows) HasNextResultSet ¶
func (r *InMemoryRows) HasNextResultSet() bool
HasNextResultSet reports whether there is another result set available
func (*InMemoryRows) Next ¶
func (r *InMemoryRows) Next(dest []driver.Value) error
Next fetches the values of the next row, returns io.EOF if it was the end
func (*InMemoryRows) NextResultSet ¶
func (r *InMemoryRows) NextResultSet() error
NextResultSet advances to the next result set, if it is available, otherwise returns io.EOF
func (*InMemoryRows) ProcessAndAppendResponse ¶
func (r *InMemoryRows) ProcessAndAppendResponse(response *client.Response) error
AppendResponse appends the response to the InMemoryRows, parsing the response content and checking for errors in the response body
type NullBytes ¶ added in v1.7.0
NullBytes represents a []byte that may be null. NullBytes implements the Scanner interface so it can be used as a scan destination.
type StreamRows ¶
type StreamRows struct {
ColumnReader
// contains filtered or unexported fields
}
func (*StreamRows) HasNextResultSet ¶
func (r *StreamRows) HasNextResultSet() bool
HasNextResultSet reports whether there is another result set available
func (*StreamRows) Next ¶
func (r *StreamRows) Next(dest []driver.Value) error
Next fetches the values of the next row, returns io.EOF if it was the end
func (*StreamRows) NextResultSet ¶
func (r *StreamRows) NextResultSet() error
NextResultSet advances to the next result set, if it is available, otherwise returns io.EOF
func (*StreamRows) ProcessAndAppendResponse ¶
func (r *StreamRows) ProcessAndAppendResponse(response *client.Response) error
AppendResponse appends a response to the list of row streams