Versions in this module Expand all Collapse all v2 v2.3.2 Nov 4, 2022 Changes in this version + const CompressionBrotli + const CompressionDeflate + const CompressionGZIP + const CompressionLZ4 + const CompressionNone + const CompressionZSTD + var ErrAcquireConnNoAddress = errors.New("clickhouse: no valid address supplied") + var ErrAcquireConnTimeout = errors.New(...) + var ErrBatchAlreadySent = errors.New("clickhouse: batch has already been sent") + var ErrBindMixedParamsFormats = errors.New("clickhouse [bind]: mixed named, numeric or positional parameters") + var ErrUnsupportedServerRevision = errors.New("clickhouse: unsupported server revision") + func Connector(opt *Options) driver.Connector + func Context(parent context.Context, options ...QueryOption) context.Context + func DateNamed(name string, value time.Time, scale TimeUnit) driver.NamedDateValue + func Named(name string, value interface{}) driver.NamedValue + func Open(opt *Options) (driver.Conn, error) + func OpenDB(opt *Options) *sql.DB + type ArraySet []interface + type Auth struct + Database string + Password string + Username string + type Compression struct + Level int + Method CompressionMethod + type CompressionMethod byte + func (c CompressionMethod) String() string + type Conn = driver.Conn + type ConnOpenStrategy uint8 + const ConnOpenInOrder + const ConnOpenRoundRobin + type Exception = proto.Exception + type GroupSet struct + Value []interface{} + type HTTPReaderWriter struct + 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 + BlockBufferSize uint8 + Compression *Compression + ConnMaxLifetime time.Duration + ConnOpenStrategy ConnOpenStrategy + Debug bool + Debugf func(format string, v ...interface{}) + DialContext func(ctx context.Context, addr string) (net.Conn, error) + DialTimeout time.Duration + HttpHeaders map[string]string + MaxIdleConns int + MaxOpenConns int + Protocol Protocol + ReadTimeout time.Duration + Settings Settings + TLS *tls.Config + func ParseDSN(dsn string) (*Options, error) + type Pool struct + func NewPool(fn func() T) Pool[T] + func (p *Pool[T]) Get() T + func (p *Pool[T]) Put(x T) + 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 Protocol int + const HTTP + const Native + func (p Protocol) String() string + type QueryOption func(*QueryOptions) error + func WithBlockBufferSize(size uint8) QueryOption + 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 + type TimeUnit uint8 + const MicroSeconds + const MilliSeconds + const NanoSeconds + const Seconds Other modules containing this package github.com/tonickkozlov/clickhouse-go