Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConfigValidation = errors.New("clickhouse config validation error")
ErrConfigValidation is general config validation error message.
Functions ¶
func PrepareInsertionSQL ¶
PrepareInsertionSQL prepares a SQL prepare statement to insert records into the database.
Types ¶
type Config ¶
type Config struct { Addr string `json:"addr" yaml:"addr"` Database string `json:"database" yaml:"database"` Debug bool `json:"debug" yaml:"debug"` ZoneInfo string `json:"zone_info" yaml:"zoneinfo"` }
Config contains config for ClickHouse database.
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a wrapper around sql.DB which keeps track of the ClickHouse database.
func (*DB) GetServerTime ¶
GetServerTime gets and returns database server time.
func (*DB) IsConnected ¶
IsConnected checks connection status to database.
func (*DB) MultiInsert ¶
MultiInsert creates transaction to batch insertions.
Click to show internal directories.
Click to hide internal directories.