Documentation ¶
Index ¶
- Variables
- func Context(parent context.Context, options ...QueryOption) context.Context
- func Named(name string, value interface{}) driver.NamedValue
- func Open(opt *Options) (driver.Conn, error)
- type Auth
- type Compression
- type Conn
- type ConnOpenStrategy
- type Date
- type DateTime
- type Exception
- type Log
- type OpError
- type Options
- type ProfileEvent
- type ProfileInfo
- type Progress
- type QueryOption
- func WithExternalTable(t ...*external.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
- type QueryOptions
- type ServerVersion
- type Settings
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBatchAlreadySent = errors.New("clickhouse: batch has already been sent") ErrAcquireConnTimeout = errors.New("clickhouse: acquire conn timeout") ErrUnsupportedServerRevision = errors.New("clickhouse: unsupported server revision") ErrBindMixedNamedAndNumericParams = errors.New("clickhouse [bind]: mixed named and numeric parameters") )
View Source
var (
CompressionLZ4 compress.Method = compress.LZ4
)
Functions ¶
func Named ¶
func Named(name string, value interface{}) driver.NamedValue
Types ¶
type Compression ¶
type ConnOpenStrategy ¶
type ConnOpenStrategy uint8
const ( ConnOpenInOrder ConnOpenStrategy = iota ConnOpenRoundRobin )
type ProfileEvent ¶
type ProfileInfo ¶
type ProfileInfo = proto.ProfileInfo
type QueryOption ¶
type QueryOption func(*QueryOptions) error
func WithExternalTable ¶
func WithExternalTable(t ...*external.Table) QueryOption
func WithLogs ¶
func WithLogs(fn func(*Log)) QueryOption
func WithProfileEvents ¶
func WithProfileEvents(fn func([]ProfileEvent)) QueryOption
func WithProfileInfo ¶
func WithProfileInfo(fn func(*ProfileInfo)) QueryOption
func WithProgress ¶
func WithProgress(fn func(*Progress)) QueryOption
func WithQueryID ¶
func WithQueryID(queryID string) QueryOption
func WithQuotaKey ¶
func WithQuotaKey(quotaKey string) QueryOption
func WithSettings ¶
func WithSettings(settings Settings) QueryOption
func WithSpan ¶
func WithSpan(span trace.SpanContext) QueryOption
type QueryOptions ¶
type QueryOptions struct {
// contains filtered or unexported fields
}
type ServerVersion ¶
type ServerVersion = proto.ServerHandshake
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
benchmark
|
|
examples
|
|
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.