Versions in this module Expand all Collapse all v2 v2.0.13 Mar 25, 2022 Changes in this version + var CompressionLZ4 compress.Method = compress.LZ4 + var ErrAcquireConnTimeout = errors.New(...) + var ErrBatchAlreadySent = errors.New("clickhouse: batch has already been sent") + var ErrBindMixedNamedAndNumericParams = errors.New("clickhouse [bind]: mixed named and numeric parameters") + var ErrUnsupportedServerRevision = errors.New("clickhouse: unsupported server revision") + func Context(parent context.Context, options ...QueryOption) context.Context + func Named(name string, value interface{}) driver.NamedValue + func Open(opt *Options) (driver.Conn, error) + func OpenDB(opt *Options) *sql.DB + type Auth struct + Database string + Password string + Username string + type Compression struct + Method compress.Method + type Conn = driver.Conn + type ConnOpenStrategy uint8 + const ConnOpenInOrder + const ConnOpenRoundRobin + type Exception = proto.Exception + type Log struct + Hostname string + Priority int8 + QueryID string + Source string + Text string + ThreadID uint64 + Time time.Time + TimeMicro uint32 + type OpError struct + ColumnName string + Err error + Op string + func (e *OpError) Error() string + type Options struct + Addr []string + Auth Auth + Compression *Compression + ConnMaxLifetime time.Duration + ConnOpenStrategy ConnOpenStrategy + Debug bool + DialContext func(ctx context.Context, addr string) (net.Conn, error) + DialTimeout time.Duration + MaxIdleConns int + MaxOpenConns int + Settings Settings + TLS *tls.Config + func ParseDSN(dsn string) (*Options, error) + type ProfileEvent struct + CurrentTime time.Time + Hostname string + Name string + ThreadID uint64 + Type string + Value int64 + type ProfileInfo = proto.ProfileInfo + type Progress = proto.Progress + type QueryOption func(*QueryOptions) error + func WithExternalTable(t ...*ext.Table) QueryOption + func WithLogs(fn func(*Log)) QueryOption + func WithProfileEvents(fn func([]ProfileEvent)) QueryOption + func WithProfileInfo(fn func(*ProfileInfo)) QueryOption + func WithProgress(fn func(*Progress)) QueryOption + func WithQueryID(queryID string) QueryOption + func WithQuotaKey(quotaKey string) QueryOption + func WithSettings(settings Settings) QueryOption + func WithSpan(span trace.SpanContext) QueryOption + func WithStdAsync(wait bool) QueryOption + type QueryOptions struct + type ServerVersion = proto.ServerHandshake + type Settings map[string]interface Other modules containing this package github.com/beebeeep/clickhouse-go