clickhouse

package
v0.5.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithQuery added in v0.4.3

func WithQuery(opts ...sqlstore.QueryOption) sqlstore.Option

WithQuery SQL storage option

Types

type Clickhouse

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

Clickhouse storage object

func Open added in v0.4.0

func Open(ctx context.Context, connect string, options ...any) (*Clickhouse, error)

Open new clickhouse storage stream

func (*Clickhouse) Close

func (c *Clickhouse) Close() error

Close clickhouse connection

func (*Clickhouse) Connection

func (c *Clickhouse) Connection() (_ *sql.DB, err error)

Connection to clickhouse DB

func (*Clickhouse) Stream

func (c *Clickhouse) Stream(options ...any) (strm eventstream.Streamer, err error)

Stream clickhouse processor

type Option added in v0.4.0

type Option func(store *Clickhouse)

Option of the clickhouse storage

func WithInitQuery added in v0.4.0

func WithInitQuery(initQuery []string) Option

WithInitQuery which will be executed after connection

Jump to

Keyboard shortcuts

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