util

package
v1.0.0-beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindQuery

func BindQuery(query string, args ...any) (string, error)

Types

type ClickHouse

type ClickHouse struct {
	// contains filtered or unexported fields
}

func OpenClickHouse

func OpenClickHouse(maxConns int, addrs []string, user string, password string, debug bool, dialTimeout time.Duration) (*ClickHouse, error)

func (*ClickHouse) Close

func (ch *ClickHouse) Close() error

func (*ClickHouse) Select

func (ch *ClickHouse) Select(isFast bool, ctx context.Context, dest interface{}, query string, args ...interface{}) error

func (*ClickHouse) SemaphoreCountFast

func (ch *ClickHouse) SemaphoreCountFast() int64

func (*ClickHouse) SemaphoreCountSlow

func (ch *ClickHouse) SemaphoreCountSlow() int64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL