package column
import "github.com/ClickHouse/clickhouse-go/lib/column"
Index ¶
- Constants
- Variables
- type Array
- func (base *Array) CHType() string
- func (base *Array) Name() string
- func (array *Array) Read(decoder *binary.Decoder) (interface{}, error)
- func (array *Array) ReadArray(decoder *binary.Decoder, rows int) (_ []interface{}, err error)
- func (base *Array) ScanType() reflect.Type
- func (base *Array) String() string
- func (array *Array) Write(encoder *binary.Encoder, v interface{}) error
- func (array *Array) WriteArray(encoder *binary.Encoder, v interface{}) (uint64, error)
- type ArrayWriter
- type Column
- type DateTime
- func (base *DateTime) CHType() string
- func (base *DateTime) Name() string
- func (dt *DateTime) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *DateTime) ScanType() reflect.Type
- func (base *DateTime) String() string
- func (dt *DateTime) Write(encoder *binary.Encoder, v interface{}) error
- type Decimal
- func (base *Decimal) CHType() string
- func (base *Decimal) Name() string
- func (d *Decimal) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *Decimal) ScanType() reflect.Type
- func (base *Decimal) String() string
- func (d *Decimal) Write(encoder *binary.Encoder, v interface{}) error
- type Enum
- func (base *Enum) CHType() string
- func (base *Enum) Name() string
- func (enum *Enum) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *Enum) ScanType() reflect.Type
- func (base *Enum) String() string
- func (enum *Enum) Write(encoder *binary.Encoder, v interface{}) error
- type ErrUnexpectedType
- type FixedString
- func (base *FixedString) CHType() string
- func (base *FixedString) Name() string
- func (str *FixedString) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *FixedString) ScanType() reflect.Type
- func (base *FixedString) String() string
- func (str *FixedString) Write(encoder *binary.Encoder, v interface{}) error
- type Float32
- func (base *Float32) CHType() string
- func (base *Float32) Name() string
- func (Float32) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *Float32) ScanType() reflect.Type
- func (base *Float32) String() string
- func (float *Float32) Write(encoder *binary.Encoder, v interface{}) error
- type Float64
- func (base *Float64) CHType() string
- func (base *Float64) Name() string
- func (Float64) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *Float64) ScanType() reflect.Type
- func (base *Float64) String() string
- func (float *Float64) Write(encoder *binary.Encoder, v interface{}) error
- type IP
- func (ip IP) MarshalBinary() ([]byte, error)
- func (ip *IP) Scan(value interface{}) (err error)
- func (ip IP) String() string
- func (ip IP) Value() (driver.Value, error)
- type Int16
- func (base *Int16) CHType() string
- func (base *Int16) Name() string
- func (Int16) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *Int16) ScanType() reflect.Type
- func (base *Int16) String() string
- func (i *Int16) Write(encoder *binary.Encoder, v interface{}) error
- type Int32
- func (base *Int32) CHType() string
- func (base *Int32) Name() string
- func (Int32) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *Int32) ScanType() reflect.Type
- func (base *Int32) String() string
- func (i *Int32) Write(encoder *binary.Encoder, v interface{}) error
- type Int64
- func (base *Int64) CHType() string
- func (base *Int64) Name() string
- func (Int64) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *Int64) ScanType() reflect.Type
- func (base *Int64) String() string
- func (i *Int64) Write(encoder *binary.Encoder, v interface{}) error
- type Int8
- func (base *Int8) CHType() string
- func (base *Int8) Name() string
- func (Int8) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *Int8) ScanType() reflect.Type
- func (base *Int8) String() string
- func (i *Int8) Write(encoder *binary.Encoder, v interface{}) error
- type Nullable
- func (base *Nullable) CHType() string
- func (base *Nullable) Name() string
- func (null *Nullable) Read(decoder *binary.Decoder) (interface{}, error)
- func (null *Nullable) ReadNull(decoder *binary.Decoder, rows int) (_ []interface{}, err error)
- func (null *Nullable) ScanType() reflect.Type
- func (base *Nullable) String() string
- func (null *Nullable) Write(encoder *binary.Encoder, v interface{}) error
- func (null *Nullable) WriteNull(nulls, encoder *binary.Encoder, v interface{}) error
- type String
- func (base *String) CHType() string
- func (base *String) Name() string
- func (String) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *String) ScanType() reflect.Type
- func (base *String) String() string
- func (str *String) Write(encoder *binary.Encoder, v interface{}) error
- type UInt16
- func (base *UInt16) CHType() string
- func (base *UInt16) Name() string
- func (UInt16) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *UInt16) ScanType() reflect.Type
- func (base *UInt16) String() string
- func (u *UInt16) Write(encoder *binary.Encoder, v interface{}) error
- type UInt32
- func (base *UInt32) CHType() string
- func (base *UInt32) Name() string
- func (UInt32) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *UInt32) ScanType() reflect.Type
- func (base *UInt32) String() string
- func (u *UInt32) Write(encoder *binary.Encoder, v interface{}) error
- type UInt64
- func (base *UInt64) CHType() string
- func (base *UInt64) Name() string
- func (UInt64) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *UInt64) ScanType() reflect.Type
- func (base *UInt64) String() string
- func (u *UInt64) Write(encoder *binary.Encoder, v interface{}) error
- type UInt8
- func (base *UInt8) CHType() string
- func (base *UInt8) Name() string
- func (UInt8) Read(decoder *binary.Decoder) (interface{}, error)
- func (base *UInt8) ScanType() reflect.Type
- func (base *UInt8) String() string
- func (u *UInt8) Write(encoder *binary.Encoder, v interface{}) error
- type UUID
Constants ¶
const UUIDLen = 16
Variables ¶
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
func (*Array) CHType ¶
func (base *Array) CHType() string
func (*Array) Name ¶
func (base *Array) Name() string
func (*Array) Read ¶
func (*Array) ReadArray ¶
func (*Array) ScanType ¶
func (*Array) String ¶
func (base *Array) String() string
func (*Array) Write ¶
func (*Array) WriteArray ¶
type ArrayWriter ¶
type Column ¶
type Column interface { Name() string CHType() string ScanType() reflect.Type Read(*binary.Decoder) (interface{}, error) Write(*binary.Encoder, interface{}) error // contains filtered or unexported methods }
func Factory ¶
type DateTime ¶
type DateTime struct { IsFull bool Timezone *time.Location // contains filtered or unexported fields }
func (*DateTime) CHType ¶
func (base *DateTime) CHType() string
func (*DateTime) Name ¶
func (base *DateTime) Name() string
func (*DateTime) Read ¶
func (*DateTime) ScanType ¶
func (*DateTime) String ¶
func (base *DateTime) String() string
func (*DateTime) Write ¶
type Decimal ¶
type Decimal struct {
// contains filtered or unexported fields
}
Decimal represents Decimal(P, S) ClickHouse. Since there is support for int128 in Golang, the implementation does not support to 128-bits decimals as well. Decimal is represented as integral. Also floating-point types are supported for query parameters.
func (*Decimal) CHType ¶
func (base *Decimal) CHType() string
func (*Decimal) Name ¶
func (base *Decimal) Name() string
func (*Decimal) Read ¶
func (*Decimal) ScanType ¶
func (*Decimal) String ¶
func (base *Decimal) String() string
func (*Decimal) Write ¶
type Enum ¶
type Enum struct {
// contains filtered or unexported fields
}
func (*Enum) CHType ¶
func (base *Enum) CHType() string
func (*Enum) Name ¶
func (base *Enum) Name() string
func (*Enum) Read ¶
func (*Enum) ScanType ¶
func (*Enum) String ¶
func (base *Enum) String() string
func (*Enum) Write ¶
type ErrUnexpectedType ¶
type ErrUnexpectedType struct { Column Column T interface{} }
func (*ErrUnexpectedType) Error ¶
func (err *ErrUnexpectedType) Error() string
type FixedString ¶
type FixedString struct {
// contains filtered or unexported fields
}
func (*FixedString) CHType ¶
func (base *FixedString) CHType() string
func (*FixedString) Name ¶
func (base *FixedString) Name() string
func (*FixedString) Read ¶
func (str *FixedString) Read(decoder *binary.Decoder) (interface{}, error)
func (*FixedString) ScanType ¶
func (*FixedString) String ¶
func (base *FixedString) String() string
func (*FixedString) Write ¶
func (str *FixedString) Write(encoder *binary.Encoder, v interface{}) error
type Float32 ¶
type Float32 struct {
// contains filtered or unexported fields
}
func (*Float32) CHType ¶
func (base *Float32) CHType() string
func (*Float32) Name ¶
func (base *Float32) Name() string
func (Float32) Read ¶
func (*Float32) ScanType ¶
func (*Float32) String ¶
func (base *Float32) String() string
func (*Float32) Write ¶
type Float64 ¶
type Float64 struct {
// contains filtered or unexported fields
}
func (*Float64) CHType ¶
func (base *Float64) CHType() string
func (*Float64) Name ¶
func (base *Float64) Name() string
func (Float64) Read ¶
func (*Float64) ScanType ¶
func (*Float64) String ¶
func (base *Float64) String() string
func (*Float64) Write ¶
type IP ¶
IP column type
func (IP) MarshalBinary ¶
func (*IP) Scan ¶
Scan implements the driver.Valuer interface, json field interface
func (IP) String ¶
String implements the fmt.Stringer interface
func (IP) Value ¶
Value implements the driver.Valuer interface, json field interface Alignment on the right side
type Int16 ¶
type Int16 struct {
// contains filtered or unexported fields
}
func (*Int16) CHType ¶
func (base *Int16) CHType() string
func (*Int16) Name ¶
func (base *Int16) Name() string
func (Int16) Read ¶
func (*Int16) ScanType ¶
func (*Int16) String ¶
func (base *Int16) String() string
func (*Int16) Write ¶
type Int32 ¶
type Int32 struct {
// contains filtered or unexported fields
}
func (*Int32) CHType ¶
func (base *Int32) CHType() string
func (*Int32) Name ¶
func (base *Int32) Name() string
func (Int32) Read ¶
func (*Int32) ScanType ¶
func (*Int32) String ¶
func (base *Int32) String() string
func (*Int32) Write ¶
type Int64 ¶
type Int64 struct {
// contains filtered or unexported fields
}
func (*Int64) CHType ¶
func (base *Int64) CHType() string
func (*Int64) Name ¶
func (base *Int64) Name() string
func (Int64) Read ¶
func (*Int64) ScanType ¶
func (*Int64) String ¶
func (base *Int64) String() string
func (*Int64) Write ¶
type Int8 ¶
type Int8 struct {
// contains filtered or unexported fields
}
func (*Int8) CHType ¶
func (base *Int8) CHType() string
func (*Int8) Name ¶
func (base *Int8) Name() string
func (Int8) Read ¶
func (*Int8) ScanType ¶
func (*Int8) String ¶
func (base *Int8) String() string
func (*Int8) Write ¶
type Nullable ¶
type Nullable struct {
// contains filtered or unexported fields
}
func (*Nullable) CHType ¶
func (base *Nullable) CHType() string
func (*Nullable) Name ¶
func (base *Nullable) Name() string
func (*Nullable) Read ¶
func (*Nullable) ReadNull ¶
func (*Nullable) ScanType ¶
func (*Nullable) String ¶
func (base *Nullable) String() string
func (*Nullable) Write ¶
func (*Nullable) WriteNull ¶
type String ¶
type String struct {
// contains filtered or unexported fields
}
func (*String) CHType ¶
func (base *String) CHType() string
func (*String) Name ¶
func (base *String) Name() string
func (String) Read ¶
func (*String) ScanType ¶
func (*String) String ¶
func (base *String) String() string
func (*String) Write ¶
type UInt16 ¶
type UInt16 struct {
// contains filtered or unexported fields
}
func (*UInt16) CHType ¶
func (base *UInt16) CHType() string
func (*UInt16) Name ¶
func (base *UInt16) Name() string
func (UInt16) Read ¶
func (*UInt16) ScanType ¶
func (*UInt16) String ¶
func (base *UInt16) String() string
func (*UInt16) Write ¶
type UInt32 ¶
type UInt32 struct {
// contains filtered or unexported fields
}
func (*UInt32) CHType ¶
func (base *UInt32) CHType() string
func (*UInt32) Name ¶
func (base *UInt32) Name() string
func (UInt32) Read ¶
func (*UInt32) ScanType ¶
func (*UInt32) String ¶
func (base *UInt32) String() string
func (*UInt32) Write ¶
type UInt64 ¶
type UInt64 struct {
// contains filtered or unexported fields
}
func (*UInt64) CHType ¶
func (base *UInt64) CHType() string
func (*UInt64) Name ¶
func (base *UInt64) Name() string
func (UInt64) Read ¶
func (*UInt64) ScanType ¶
func (*UInt64) String ¶
func (base *UInt64) String() string
func (*UInt64) Write ¶
type UInt8 ¶
type UInt8 struct {
// contains filtered or unexported fields
}
func (*UInt8) CHType ¶
func (base *UInt8) CHType() string
func (*UInt8) Name ¶
func (base *UInt8) Name() string
func (UInt8) Read ¶
func (*UInt8) ScanType ¶
func (*UInt8) String ¶
func (base *UInt8) String() string
func (*UInt8) Write ¶
type UUID ¶
type UUID struct {
// contains filtered or unexported fields
}
func (*UUID) CHType ¶
func (base *UUID) CHType() string
func (*UUID) Name ¶
func (base *UUID) Name() string
func (*UUID) Read ¶
func (*UUID) ScanType ¶
func (*UUID) String ¶
func (base *UUID) String() string
func (*UUID) Write ¶
Source Files ¶
array.go column.go common.go datetime.go decimal.go enum.go fixed_string.go float32.go float64.go int16.go int32.go int64.go int8.go ip.go nullable.go string.go uint16.go uint32.go uint64.go uint8.go uuid.go
- Version
- v1.3.5
- Published
- Nov 16, 2018
- Platform
- js/wasm
- Imports
- 12 packages
- Last checked
- 36 minutes ago –
Tools for package owners.