Documentation ¶
Index ¶
- Constants
- type Block
- func (block *Block) AppendRow(args []driver.Value) error
- func (block *Block) ColumnNames() []string
- func (block *Block) Copy() *Block
- func (block *Block) Read(serverInfo *ServerInfo, decoder *binary.Decoder) (err error)
- func (block *Block) Reserve()
- func (block *Block) Reset()
- func (block *Block) Write(serverInfo *ServerInfo, encoder *binary.Encoder) error
- func (block *Block) WriteArray(c int, v interface{}) error
- func (block *Block) WriteArrayNullable(c int, v *interface{}) error
- func (block *Block) WriteArrayWithValue(c int, value Value) error
- func (block *Block) WriteBool(c int, v bool) error
- func (block *Block) WriteBytes(c int, v []byte) error
- func (block *Block) WriteBytesNullable(c int, v *[]byte) error
- func (block *Block) WriteDate(c int, v time.Time) error
- func (block *Block) WriteDateNullable(c int, v *time.Time) error
- func (block *Block) WriteDateTime(c int, v time.Time) error
- func (block *Block) WriteDateTimeNullable(c int, v *time.Time) error
- func (block *Block) WriteFixedString(c int, v []byte) error
- func (block *Block) WriteFixedStringNullable(c int, v *[]byte) error
- func (block *Block) WriteFloat32(c int, v float32) error
- func (block *Block) WriteFloat32Nullable(c int, v *float32) error
- func (block *Block) WriteFloat64(c int, v float64) error
- func (block *Block) WriteFloat64Nullable(c int, v *float64) error
- func (block *Block) WriteIP(c int, v net.IP) error
- func (block *Block) WriteInt16(c int, v int16) error
- func (block *Block) WriteInt16Nullable(c int, v *int16) error
- func (block *Block) WriteInt32(c int, v int32) error
- func (block *Block) WriteInt32Nullable(c int, v *int32) error
- func (block *Block) WriteInt64(c int, v int64) error
- func (block *Block) WriteInt64Nullable(c int, v *int64) error
- func (block *Block) WriteInt8(c int, v int8) error
- func (block *Block) WriteInt8Nullable(c int, v *int8) error
- func (block *Block) WriteString(c int, v string) error
- func (block *Block) WriteStringNullable(c int, v *string) error
- func (block *Block) WriteUInt16(c int, v uint16) error
- func (block *Block) WriteUInt16Nullable(c int, v *uint16) error
- func (block *Block) WriteUInt32(c int, v uint32) error
- func (block *Block) WriteUInt32Nullable(c int, v *uint32) error
- func (block *Block) WriteUInt64(c int, v uint64) error
- func (block *Block) WriteUInt64Nullable(c int, v *uint64) error
- func (block *Block) WriteUInt8(c int, v uint8) error
- func (block *Block) WriteUInt8Nullable(c int, v *uint8) error
- type ClientInfo
- type ServerInfo
- type Value
Constants ¶
View Source
const ( ClickHouseRevision = 54213 ClickHouseDBMSVersionMajor = 1 ClickHouseDBMSVersionMinor = 1 )
View Source
const ClientName = "Golang SQLDriver"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Values [][]interface{} Columns []column.Column NumRows uint64 NumColumns uint64 // contains filtered or unexported fields }
func (*Block) ColumnNames ¶
func (*Block) Read ¶
func (block *Block) Read(serverInfo *ServerInfo, decoder *binary.Decoder) (err error)
func (*Block) Write ¶
func (block *Block) Write(serverInfo *ServerInfo, encoder *binary.Encoder) error
func (*Block) WriteArray ¶
func (*Block) WriteArrayNullable ¶ added in v1.4.4
func (*Block) WriteArrayWithValue ¶ added in v1.3.12
func (*Block) WriteBytesNullable ¶ added in v1.4.4
func (*Block) WriteDateNullable ¶ added in v1.4.4
func (*Block) WriteDateTimeNullable ¶ added in v1.4.4
func (*Block) WriteFixedStringNullable ¶ added in v1.4.4
func (*Block) WriteFloat32Nullable ¶ added in v1.4.4
func (*Block) WriteFloat64Nullable ¶ added in v1.4.4
func (*Block) WriteInt16Nullable ¶ added in v1.4.4
func (*Block) WriteInt32Nullable ¶ added in v1.4.4
func (*Block) WriteInt64Nullable ¶ added in v1.4.4
func (*Block) WriteInt8Nullable ¶ added in v1.4.4
func (*Block) WriteStringNullable ¶ added in v1.4.4
func (*Block) WriteUInt16Nullable ¶ added in v1.4.4
func (*Block) WriteUInt32Nullable ¶ added in v1.4.4
func (*Block) WriteUInt64Nullable ¶ added in v1.4.4
type ClientInfo ¶
type ClientInfo struct{}
func (ClientInfo) String ¶
func (ClientInfo) String() string
type ServerInfo ¶
type ServerInfo struct { Name string Revision uint64 MinorVersion uint64 MajorVersion uint64 Timezone *time.Location }
func (ServerInfo) String ¶
func (srv ServerInfo) String() string
type Value ¶ added in v1.3.12
type Value interface { // Kind returns value's Kind. Kind() reflect.Kind // Len returns value's length. // It panics if value's Kind is not Array, Chan, Map, Slice, or String. Len() int // Index returns value's i'th element. // It panics if value's Kind is not Array, Slice, or String or i is out of range. Index(i int) Value // Interface returns value's current value as an interface{}. Interface() interface{} }
Value is a writable value.
Click to show internal directories.
Click to hide internal directories.