clickhouse

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionFactory

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

func (*ConnectionFactory) AsyncInsert

func (c *ConnectionFactory) AsyncInsert(table string, data interface{}) error

func (*ConnectionFactory) Conn

func (c *ConnectionFactory) Conn() driver.Conn

func (*ConnectionFactory) DB

func (c *ConnectionFactory) DB() *gorm.DB

func (*ConnectionFactory) DataBase

func (c *ConnectionFactory) DataBase() string

type Option

type Option struct {
	Hosts                []string
	Username             string
	Password             string
	DataBase             string
	MaxIdleConn          int
	MaxOpenConn          int
	BlockBufferSize      int
	MaxCompressionBuffer int
	IsDebug              bool
	LogMode              string
}

func NewOption

func NewOption(hosts []string, username, password, database string) *Option

func (*Option) Connect

func (m *Option) Connect() *ConnectionFactory

func (*Option) WithBlockBufferSize

func (m *Option) WithBlockBufferSize(c int) *Option

func (*Option) WithIsDebug

func (m *Option) WithIsDebug(c bool) *Option

func (*Option) WithMaxCompressionBuffer

func (m *Option) WithMaxCompressionBuffer(c int) *Option

func (*Option) WithMaxIdleConn

func (m *Option) WithMaxIdleConn(c int) *Option

func (*Option) WithMaxOpenConn

func (m *Option) WithMaxOpenConn(c int) *Option

Jump to

Keyboard shortcuts

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