Documentation ¶
Index ¶
- Constants
- Variables
- func Array(v interface{}) interface{}
- func ArrayDate(v []time.Time) interface{}
- func ArrayDateTime(v []time.Time) interface{}
- func ArrayFixedString(len int, v interface{}) interface{}
- func Open(dsn string) (driver.Conn, error)
- func SetLogOutput(output io.Writer)
- type Clickhouse
- type ColumnWriter
- type Date
- type DateTime
- type Exception
- type UUID
Constants ¶
View Source
const ( DefaultDatabase = "default" DefaultUsername = "default" DefaultReadTimeout = time.Minute DefaultWriteTimeout = time.Minute )
Variables ¶
View Source
var ( ErrInsertInNotBatchMode = errors.New("insert statement supported only in the batch mode (use begin/commit)") ErrLimitDataRequestInTx = errors.New("data request has already been prepared in transaction") )
Functions ¶
func ArrayDateTime ¶
func ArrayFixedString ¶
func ArrayFixedString(len int, v interface{}) interface{}
func SetLogOutput ¶ added in v1.3.2
Types ¶
type Clickhouse ¶
type Clickhouse interface { Block() (*data.Block, error) Prepare(query string) (driver.Stmt, error) Begin() (driver.Tx, error) Commit() error Rollback() error Close() error WriteBlock(block *data.Block) error }
Interface for Clickhouse driver
func OpenDirect ¶
func OpenDirect(dsn string) (Clickhouse, error)
type ColumnWriter ¶
type ColumnWriter interface { WriteDate(c int, v time.Time) error WriteDateTime(c int, v time.Time) error WriteUInt8(c int, v uint8) error WriteUInt16(c int, v uint16) error WriteUInt32(c int, v uint32) error WriteUInt64(c int, v uint64) error WriteFloat32(c int, v float32) error WriteFloat64(c int, v float64) error WriteBytes(c int, v []byte) error WriteArray(c int, v interface{}) error WriteString(c int, v string) error WriteFixedString(c int, v []byte) error }
Interface for Block allowing writes to individual columns
Source Files ¶
- array.go
- bootstrap.go
- clickhouse.go
- clickhouse_exception.go
- clickhouse_ping.go
- clickhouse_profile_info.go
- clickhouse_progress.go
- clickhouse_read_block.go
- clickhouse_read_meta.go
- clickhouse_send_query.go
- clickhouse_write_block.go
- connect.go
- helpers.go
- result.go
- rows.go
- stmt.go
- word_matcher.go
- write_column.go
Directories ¶
Path | Synopsis |
---|---|
lib
|
|
cityhash102
* COPY from https://github.com/zentures/cityhash/ NOTE: The code is modified to be compatible with CityHash128 used in ClickHouse
|
* COPY from https://github.com/zentures/cityhash/ NOTE: The code is modified to be compatible with CityHash128 used in ClickHouse |
Click to show internal directories.
Click to hide internal directories.