clickhouse: github.com/kshvakov/clickhouse/lib/data Index | Files

package data

import "github.com/kshvakov/clickhouse/lib/data"

Index

Package Files

block.go block_write_column.go client_info.go server_info.go

Constants

const (
    ClickHouseRevision         = 54213
    ClickHouseDBMSVersionMajor = 1
    ClickHouseDBMSVersionMinor = 1
)
const ClientName = "Golang SQLDriver"

type Block Uses

type Block struct {
    Values     [][]interface{}
    Columns    []column.Column
    NumRows    uint64
    NumColumns uint64
    // contains filtered or unexported fields
}

func (*Block) AppendRow Uses

func (block *Block) AppendRow(args []driver.Value) error

func (*Block) ColumnNames Uses

func (block *Block) ColumnNames() []string

func (*Block) Copy Uses

func (block *Block) Copy() *Block

func (*Block) Read Uses

func (block *Block) Read(serverInfo *ServerInfo, decoder *binary.Decoder) (err error)

func (*Block) Reserve Uses

func (block *Block) Reserve()

func (*Block) Reset Uses

func (block *Block) Reset()

func (*Block) Write Uses

func (block *Block) Write(serverInfo *ServerInfo, encoder *binary.Encoder) error

func (*Block) WriteArray Uses

func (block *Block) WriteArray(c int, v interface{}) error

func (*Block) WriteBool Uses

func (block *Block) WriteBool(c int, v bool) error

func (*Block) WriteBytes Uses

func (block *Block) WriteBytes(c int, v []byte) error

func (*Block) WriteDate Uses

func (block *Block) WriteDate(c int, v time.Time) error

func (*Block) WriteDateTime Uses

func (block *Block) WriteDateTime(c int, v time.Time) error

func (*Block) WriteFixedString Uses

func (block *Block) WriteFixedString(c int, v []byte) error

func (*Block) WriteFloat32 Uses

func (block *Block) WriteFloat32(c int, v float32) error

func (*Block) WriteFloat64 Uses

func (block *Block) WriteFloat64(c int, v float64) error

func (*Block) WriteInt16 Uses

func (block *Block) WriteInt16(c int, v int16) error

func (*Block) WriteInt32 Uses

func (block *Block) WriteInt32(c int, v int32) error

func (*Block) WriteInt64 Uses

func (block *Block) WriteInt64(c int, v int64) error

func (*Block) WriteInt8 Uses

func (block *Block) WriteInt8(c int, v int8) error

func (*Block) WriteString Uses

func (block *Block) WriteString(c int, v string) error

func (*Block) WriteUInt16 Uses

func (block *Block) WriteUInt16(c int, v uint16) error

func (*Block) WriteUInt32 Uses

func (block *Block) WriteUInt32(c int, v uint32) error

func (*Block) WriteUInt64 Uses

func (block *Block) WriteUInt64(c int, v uint64) error

func (*Block) WriteUInt8 Uses

func (block *Block) WriteUInt8(c int, v uint8) error

type ClientInfo Uses

type ClientInfo struct{}

func (ClientInfo) String Uses

func (ClientInfo) String() string

func (ClientInfo) Write Uses

func (ClientInfo) Write(encoder *binary.Encoder) error

type ServerInfo Uses

type ServerInfo struct {
    Name         string
    Revision     uint64
    MinorVersion uint64
    MajorVersion uint64
    Timezone     *time.Location
}

func (*ServerInfo) Read Uses

func (srv *ServerInfo) Read(decoder *binary.Decoder) (err error)

func (ServerInfo) String Uses

func (srv ServerInfo) String() string

Package data imports 10 packages (graph) and is imported by 2 packages. Updated 2019-09-13. Refresh now. Tools for package owners.