package data
import "github.com/ClickHouse/clickhouse-go/lib/data"
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) WriteBoolNullable(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) WriteIPNullable(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
- func (srv *ServerInfo) Read(decoder *binary.Decoder) (err error)
- func (srv ServerInfo) String() string
- type Value
Constants ¶
const ( ClickHouseRevision = 54213 ClickHouseDBMSVersionMajor = 1 ClickHouseDBMSVersionMinor = 1 )
const ClientName = "Golang SQLDriver"
Types ¶
type Block ¶
type Block struct { Values [][]interface{} Columns []column.Column NumRows uint64 NumColumns uint64 // contains filtered or unexported fields }
func (*Block) AppendRow ¶
func (*Block) ColumnNames ¶
func (*Block) Copy ¶
func (*Block) Read ¶
func (block *Block) Read(serverInfo *ServerInfo, decoder *binary.Decoder) (err error)
func (*Block) Reserve ¶
func (block *Block) Reserve()
func (*Block) Reset ¶
func (block *Block) Reset()
func (*Block) Write ¶
func (block *Block) Write(serverInfo *ServerInfo, encoder *binary.Encoder) error
func (*Block) WriteArray ¶
func (*Block) WriteArrayNullable ¶
func (*Block) WriteArrayWithValue ¶
func (*Block) WriteBool ¶
func (*Block) WriteBoolNullable ¶
func (*Block) WriteBytes ¶
func (*Block) WriteBytesNullable ¶
func (*Block) WriteDate ¶
func (*Block) WriteDateNullable ¶
func (*Block) WriteDateTime ¶
func (*Block) WriteDateTimeNullable ¶
func (*Block) WriteFixedString ¶
func (*Block) WriteFixedStringNullable ¶
func (*Block) WriteFloat32 ¶
func (*Block) WriteFloat32Nullable ¶
func (*Block) WriteFloat64 ¶
func (*Block) WriteFloat64Nullable ¶
func (*Block) WriteIP ¶
func (*Block) WriteIPNullable ¶
func (*Block) WriteInt16 ¶
func (*Block) WriteInt16Nullable ¶
func (*Block) WriteInt32 ¶
func (*Block) WriteInt32Nullable ¶
func (*Block) WriteInt64 ¶
func (*Block) WriteInt64Nullable ¶
func (*Block) WriteInt8 ¶
func (*Block) WriteInt8Nullable ¶
func (*Block) WriteString ¶
func (*Block) WriteStringNullable ¶
func (*Block) WriteUInt16 ¶
func (*Block) WriteUInt16Nullable ¶
func (*Block) WriteUInt32 ¶
func (*Block) WriteUInt32Nullable ¶
func (*Block) WriteUInt64 ¶
func (*Block) WriteUInt64Nullable ¶
func (*Block) WriteUInt8 ¶
func (*Block) WriteUInt8Nullable ¶
type ClientInfo ¶
type ClientInfo struct{}
func (ClientInfo) String ¶
func (ClientInfo) String() string
func (ClientInfo) Write ¶
func (ClientInfo) Write(encoder *binary.Encoder) error
type ServerInfo ¶
type ServerInfo struct { Name string Revision uint64 MinorVersion uint64 MajorVersion uint64 Timezone *time.Location }
func (*ServerInfo) Read ¶
func (srv *ServerInfo) Read(decoder *binary.Decoder) (err error)
func (ServerInfo) String ¶
func (srv ServerInfo) String() string
type Value ¶
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.
Source Files ¶
block.go block_write_column.go client_info.go server_info.go value.go
- Version
- v1.5.4 (latest)
- Published
- Feb 8, 2022
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 2 hours ago –
Tools for package owners.