clickhouseclient

package
v1.8.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectClickHouse added in v1.8.0

func ConnectClickHouse(url string) (*sql.DB, error)

func PrepareConnection added in v1.8.0

func PrepareConnection(input ClickHouseInput) (string, *sql.DB, error)

Types

type ClickHouseExportProcess

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

func NewClickHouseClient

func NewClickHouseClient(input ClickHouseInput) (*ClickHouseExportProcess, error)

func (*ClickHouseExportProcess) CacheSet

func (ch *ClickHouseExportProcess) CacheSet(set ipfixentities.Set)

func (*ClickHouseExportProcess) GetCommitInterval added in v1.8.0

func (ch *ClickHouseExportProcess) GetCommitInterval() time.Duration

func (*ClickHouseExportProcess) GetDsn added in v1.8.0

func (ch *ClickHouseExportProcess) GetDsn() string

func (*ClickHouseExportProcess) GetDsnMap added in v1.8.0

func (ch *ClickHouseExportProcess) GetDsnMap() map[string]string

func (*ClickHouseExportProcess) SetCommitInterval added in v1.8.0

func (ch *ClickHouseExportProcess) SetCommitInterval(commitInterval time.Duration)

func (*ClickHouseExportProcess) Start

func (ch *ClickHouseExportProcess) Start()

func (*ClickHouseExportProcess) Stop

func (ch *ClickHouseExportProcess) Stop()

func (*ClickHouseExportProcess) UpdateCH added in v1.8.0

func (ch *ClickHouseExportProcess) UpdateCH(input *ClickHouseExportProcess, dsn string, connect *sql.DB)

type ClickHouseFlowRow

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

type ClickHouseInput

type ClickHouseInput struct {
	Username       string
	Password       string
	Database       string
	DatabaseURL    string
	Debug          bool
	Compress       *bool
	CommitInterval time.Duration
}

Jump to

Keyboard shortcuts

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