Versions in this module Expand all Collapse all v1 v1.4.6 Jun 12, 2021 Changes in this version + const NullUUID + const UUIDLen + var ErrInvalidUUIDFormat = errors.New("invalid UUID format") + type Array struct + func (array *Array) Depth() int + func (array *Array) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (array *Array) ReadArray(decoder *binary.Decoder, rows int) (_ []interface{}, err error) + func (array *Array) Write(encoder *binary.Encoder, v interface{}) error + func (base *Array) CHType() string + func (base *Array) Name() string + func (base *Array) ScanType() reflect.Type + func (base *Array) String() string + type Column interface + CHType func() string + Depth func() int + Name func() string + Read func(*binary.Decoder, bool) (interface{}, error) + ScanType func() reflect.Type + Write func(*binary.Encoder, interface{}) error + func Factory(name, chType string, timezone *time.Location) (Column, error) + type Date struct + Timezone *time.Location + func (base *Date) CHType() string + func (base *Date) Depth() int + func (base *Date) Name() string + func (base *Date) ScanType() reflect.Type + func (base *Date) String() string + func (dt *Date) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (dt *Date) Write(encoder *binary.Encoder, v interface{}) error + type DateTime struct + Timezone *time.Location + func (base *DateTime) CHType() string + func (base *DateTime) Depth() int + func (base *DateTime) Name() string + func (base *DateTime) ScanType() reflect.Type + func (base *DateTime) String() string + func (dt *DateTime) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (dt *DateTime) Write(encoder *binary.Encoder, v interface{}) error + type DateTime64 struct + Timezone *time.Location + func (base *DateTime64) CHType() string + func (base *DateTime64) Depth() int + func (base *DateTime64) Name() string + func (base *DateTime64) ScanType() reflect.Type + func (base *DateTime64) String() string + func (dt *DateTime64) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (dt *DateTime64) Write(encoder *binary.Encoder, v interface{}) error + type Decimal struct + func (base *Decimal) CHType() string + func (base *Decimal) Depth() int + func (base *Decimal) Name() string + func (base *Decimal) ScanType() reflect.Type + func (base *Decimal) String() string + func (d *Decimal) GetPrecision() int + func (d *Decimal) GetScale() int + func (d *Decimal) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (d *Decimal) Write(encoder *binary.Encoder, v interface{}) error + type Enum struct + func (base *Enum) CHType() string + func (base *Enum) Depth() int + func (base *Enum) Name() string + func (base *Enum) ScanType() reflect.Type + func (base *Enum) String() string + func (enum *Enum) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (enum *Enum) Write(encoder *binary.Encoder, v interface{}) error + type ErrUnexpectedType struct + Column Column + T interface{} + func (err *ErrUnexpectedType) Error() string + type FixedString struct + func (base *FixedString) CHType() string + func (base *FixedString) Depth() int + func (base *FixedString) Name() string + func (base *FixedString) ScanType() reflect.Type + func (base *FixedString) String() string + func (str *FixedString) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (str *FixedString) Write(encoder *binary.Encoder, v interface{}) error + type Float32 struct + func (Float32) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *Float32) CHType() string + func (base *Float32) Depth() int + func (base *Float32) Name() string + func (base *Float32) ScanType() reflect.Type + func (base *Float32) String() string + func (float *Float32) Write(encoder *binary.Encoder, v interface{}) error + type Float64 struct + func (Float64) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *Float64) CHType() string + func (base *Float64) Depth() int + func (base *Float64) Name() string + func (base *Float64) ScanType() reflect.Type + func (base *Float64) String() string + func (float *Float64) Write(encoder *binary.Encoder, v interface{}) error + type IP net.IP + func (ip *IP) Scan(value interface{}) (err error) + func (ip IP) MarshalBinary() ([]byte, error) + func (ip IP) String() string + func (ip IP) Value() (driver.Value, error) + type IPv4 struct + func (*IPv4) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *IPv4) CHType() string + func (base *IPv4) Depth() int + func (base *IPv4) Name() string + func (base *IPv4) ScanType() reflect.Type + func (base *IPv4) String() string + func (ip *IPv4) Write(encoder *binary.Encoder, v interface{}) error + type IPv6 struct + func (*IPv6) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *IPv6) CHType() string + func (base *IPv6) Depth() int + func (base *IPv6) Name() string + func (base *IPv6) ScanType() reflect.Type + func (base *IPv6) String() string + func (ip *IPv6) Write(encoder *binary.Encoder, v interface{}) error + type Int16 struct + func (Int16) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *Int16) CHType() string + func (base *Int16) Depth() int + func (base *Int16) Name() string + func (base *Int16) ScanType() reflect.Type + func (base *Int16) String() string + func (i *Int16) Write(encoder *binary.Encoder, v interface{}) error + type Int32 struct + func (Int32) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *Int32) CHType() string + func (base *Int32) Depth() int + func (base *Int32) Name() string + func (base *Int32) ScanType() reflect.Type + func (base *Int32) String() string + func (i *Int32) Write(encoder *binary.Encoder, v interface{}) error + type Int64 struct + func (Int64) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *Int64) CHType() string + func (base *Int64) Depth() int + func (base *Int64) Name() string + func (base *Int64) ScanType() reflect.Type + func (base *Int64) String() string + func (i *Int64) Write(encoder *binary.Encoder, v interface{}) error + type Int8 struct + func (Int8) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *Int8) CHType() string + func (base *Int8) Depth() int + func (base *Int8) Name() string + func (base *Int8) ScanType() reflect.Type + func (base *Int8) String() string + func (i *Int8) Write(encoder *binary.Encoder, v interface{}) error + type Map struct + func (base *Map) CHType() string + func (base *Map) Depth() int + func (base *Map) Name() string + func (base *Map) ScanType() reflect.Type + func (base *Map) String() string + func (str *Map) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (str *Map) Write(encoder *binary.Encoder, v interface{}) error + type Nullable struct + func (base *Nullable) CHType() string + func (base *Nullable) Depth() int + func (base *Nullable) Name() string + func (base *Nullable) String() string + func (null *Nullable) GetColumn() Column + func (null *Nullable) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (null *Nullable) ReadNull(decoder *binary.Decoder, rows int) (_ []interface{}, err error) + func (null *Nullable) ScanType() reflect.Type + func (null *Nullable) Write(encoder *binary.Encoder, v interface{}) error + func (null *Nullable) WriteNull(nulls, encoder *binary.Encoder, v interface{}) error + type String struct + func (String) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *String) CHType() string + func (base *String) Depth() int + func (base *String) Name() string + func (base *String) ScanType() reflect.Type + func (base *String) String() string + func (str *String) Write(encoder *binary.Encoder, v interface{}) error + type Tuple struct + func (base *Tuple) CHType() string + func (base *Tuple) Depth() int + func (base *Tuple) Name() string + func (base *Tuple) ScanType() reflect.Type + func (base *Tuple) String() string + func (tuple *Tuple) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (tuple *Tuple) ReadTuple(decoder *binary.Decoder, rows int) ([]interface{}, error) + func (tuple *Tuple) Write(encoder *binary.Encoder, v interface{}) (err error) + type UInt16 struct + func (UInt16) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *UInt16) CHType() string + func (base *UInt16) Depth() int + func (base *UInt16) Name() string + func (base *UInt16) ScanType() reflect.Type + func (base *UInt16) String() string + func (u *UInt16) Write(encoder *binary.Encoder, v interface{}) error + type UInt32 struct + func (UInt32) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *UInt32) CHType() string + func (base *UInt32) Depth() int + func (base *UInt32) Name() string + func (base *UInt32) ScanType() reflect.Type + func (base *UInt32) String() string + func (u *UInt32) Write(encoder *binary.Encoder, v interface{}) error + type UInt64 struct + func (UInt64) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *UInt64) CHType() string + func (base *UInt64) Depth() int + func (base *UInt64) Name() string + func (base *UInt64) ScanType() reflect.Type + func (base *UInt64) String() string + func (u *UInt64) Write(encoder *binary.Encoder, v interface{}) error + type UInt8 struct + func (UInt8) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *UInt8) CHType() string + func (base *UInt8) Depth() int + func (base *UInt8) Name() string + func (base *UInt8) ScanType() reflect.Type + func (base *UInt8) String() string + func (u *UInt8) Write(encoder *binary.Encoder, v interface{}) error + type UUID struct + func (*UUID) Read(decoder *binary.Decoder, isNull bool) (interface{}, error) + func (base *UUID) CHType() string + func (base *UUID) Depth() int + func (base *UUID) Name() string + func (base *UUID) ScanType() reflect.Type + func (base *UUID) String() string + func (u *UUID) Write(encoder *binary.Encoder, v interface{}) (err error)