Documentation ¶
Index ¶
- func IsScanDiffSizeErr(err error) bool
- type BinaryValueWriter
- func (bw *BinaryValueWriter) Bytes() []byte
- func (bw *BinaryValueWriter) Reset()
- func (bw *BinaryValueWriter) WriteDate(t time.Time) (int64, error)
- func (bw *BinaryValueWriter) WriteDateTime(t time.Time) (int64, error)
- func (bw *BinaryValueWriter) WriteDuration(d time.Duration) (n int64, err error)
- func (bw *BinaryValueWriter) WriteFloat32(f float32) (int64, error)
- func (bw *BinaryValueWriter) WriteFloat64(f float64) (int64, error)
- func (bw *BinaryValueWriter) WriteString(s string) (int64, error)
- func (bw *BinaryValueWriter) WriteUint16(v uint16) (n int64, err error)
- func (bw *BinaryValueWriter) WriteUint32(v uint32) (n int64, err error)
- func (bw *BinaryValueWriter) WriteUint64(v uint64) (n int64, err error)
- func (bw *BinaryValueWriter) WriteUint8(v uint8) (int64, error)
- type ValueWriter
- type VirtualRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsScanDiffSizeErr ¶
IsScanDiffSizeErr returns true if target error is caused by scanning values with different size.
Types ¶
type BinaryValueWriter ¶
func (*BinaryValueWriter) Bytes ¶
func (bw *BinaryValueWriter) Bytes() []byte
func (*BinaryValueWriter) Reset ¶
func (bw *BinaryValueWriter) Reset()
func (*BinaryValueWriter) WriteDate ¶
func (bw *BinaryValueWriter) WriteDate(t time.Time) (int64, error)
func (*BinaryValueWriter) WriteDateTime ¶
func (bw *BinaryValueWriter) WriteDateTime(t time.Time) (int64, error)
func (*BinaryValueWriter) WriteDuration ¶
func (bw *BinaryValueWriter) WriteDuration(d time.Duration) (n int64, err error)
func (*BinaryValueWriter) WriteFloat32 ¶
func (bw *BinaryValueWriter) WriteFloat32(f float32) (int64, error)
func (*BinaryValueWriter) WriteFloat64 ¶
func (bw *BinaryValueWriter) WriteFloat64(f float64) (int64, error)
func (*BinaryValueWriter) WriteString ¶
func (bw *BinaryValueWriter) WriteString(s string) (int64, error)
func (*BinaryValueWriter) WriteUint16 ¶
func (bw *BinaryValueWriter) WriteUint16(v uint16) (n int64, err error)
func (*BinaryValueWriter) WriteUint32 ¶
func (bw *BinaryValueWriter) WriteUint32(v uint32) (n int64, err error)
func (*BinaryValueWriter) WriteUint64 ¶
func (bw *BinaryValueWriter) WriteUint64(v uint64) (n int64, err error)
func (*BinaryValueWriter) WriteUint8 ¶
func (bw *BinaryValueWriter) WriteUint8(v uint8) (int64, error)
type ValueWriter ¶
type ValueWriter interface { WriteString(s string) (int64, error) WriteUint64(v uint64) (int64, error) WriteUint32(v uint32) (int64, error) WriteUint16(v uint16) (int64, error) WriteUint8(v uint8) (int64, error) WriteFloat64(f float64) (int64, error) WriteFloat32(f float32) (int64, error) WriteDate(t time.Time) (int64, error) WriteDateTime(t time.Time) (int64, error) WriteDuration(d time.Duration) (int64, error) }
type VirtualRow ¶
type VirtualRow interface { proto.KeyedRow // Values returns all values of current row. Values() []proto.Value }
VirtualRow represents virtual row which is created manually.
func NewBinaryVirtualRow ¶
func NewBinaryVirtualRow(fields []proto.Field, cells []proto.Value) VirtualRow
NewBinaryVirtualRow creates a virtual row with binary-protocol.
func NewTextVirtualRow ¶
func NewTextVirtualRow(fields []proto.Field, cells []proto.Value) VirtualRow
NewTextVirtualRow creates a virtual row with text-protocol.
Click to show internal directories.
Click to hide internal directories.