clickhouse

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClickHouseSource

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

ClickHouseSource implements the hermod.Source interface for ClickHouse.

func NewClickHouseSource

func NewClickHouseSource(connString string, tables []string, idField string, pollInterval time.Duration, useCDC bool) *ClickHouseSource

func (*ClickHouseSource) Ack

Ack moves the position a restart resumes from.

It used to do nothing, while Read advanced the watermark the moment a row was fetched — so the position the engine persisted was always at least one row ahead of what had been delivered, and a worker that died with a message in flight came back past it. The row was never handed out again and nothing reported a gap.

The same distinction the MongoDB and MySQL sources draw, for the same reason.

func (*ClickHouseSource) Close

func (c *ClickHouseSource) Close() error

func (*ClickHouseSource) DiscoverColumns

func (c *ClickHouseSource) DiscoverColumns(ctx context.Context, table string) ([]hermod.ColumnInfo, error)

func (*ClickHouseSource) DiscoverDatabases

func (c *ClickHouseSource) DiscoverDatabases(ctx context.Context) ([]string, error)

func (*ClickHouseSource) DiscoverTables

func (c *ClickHouseSource) DiscoverTables(ctx context.Context) ([]string, error)

func (*ClickHouseSource) GetState

func (c *ClickHouseSource) GetState() map[string]string

func (*ClickHouseSource) Ping

func (c *ClickHouseSource) Ping(ctx context.Context) error

func (*ClickHouseSource) Read

func (*ClickHouseSource) Sample

func (c *ClickHouseSource) Sample(ctx context.Context, table string) (hermod.Message, error)

func (*ClickHouseSource) SetLogger

func (c *ClickHouseSource) SetLogger(logger hermod.Logger)

func (*ClickHouseSource) SetState

func (c *ClickHouseSource) SetState(state map[string]string)

func (*ClickHouseSource) Snapshot

func (c *ClickHouseSource) Snapshot(ctx context.Context, tables ...string) error

Jump to

Keyboard shortcuts

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