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) 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) WriteDate(c int, v time.Time) error
- func (block *Block) WriteDateTime(c int, v time.Time) error
- func (block *Block) WriteFixedString(c int, v []byte) error
- func (block *Block) WriteFloat32(c int, v float32) error
- func (block *Block) WriteFloat64(c int, v float64) error
- func (block *Block) WriteInt16(c int, v int16) error
- func (block *Block) WriteInt32(c int, v int32) error
- func (block *Block) WriteInt64(c int, v int64) error
- func (block *Block) WriteInt8(c int, v int8) error
- func (block *Block) WriteString(c int, v string) error
- func (block *Block) WriteUInt16(c int, v uint16) error
- func (block *Block) WriteUInt32(c int, v uint32) error
- func (block *Block) WriteUInt64(c int, v uint64) error
- func (block *Block) WriteUInt8(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) WriteArrayWithValue ¶ added in v1.3.12
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.