scylladb

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScyllaDBSource

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

ScyllaDBSource implements the hermod.Source interface for ScyllaDB.

func NewScyllaDBSource

func NewScyllaDBSource(hosts []string, tables []string, idField string, pollInterval time.Duration, useCDC bool) *ScyllaDBSource

func (*ScyllaDBSource) Ack

func (s *ScyllaDBSource) Ack(ctx context.Context, msg hermod.Message) error

Ack moves the persisted cursor to the acknowledged row. It must not move on read: GetState is the engine's persistence contract, so a cursor advanced when a row is handed out is already past rows still in flight, and a crash before the sinks wrote them erases them from the resume.

func (*ScyllaDBSource) Close

func (s *ScyllaDBSource) Close() error

func (*ScyllaDBSource) DiscoverDatabases

func (s *ScyllaDBSource) DiscoverDatabases(ctx context.Context) ([]string, error)

func (*ScyllaDBSource) DiscoverTables

func (s *ScyllaDBSource) DiscoverTables(ctx context.Context) ([]string, error)

func (*ScyllaDBSource) GetState

func (s *ScyllaDBSource) GetState() map[string]string

func (*ScyllaDBSource) Ping

func (s *ScyllaDBSource) Ping(ctx context.Context) error

func (*ScyllaDBSource) Read

func (*ScyllaDBSource) Sample

func (s *ScyllaDBSource) Sample(ctx context.Context, table string) (hermod.Message, error)

func (*ScyllaDBSource) SetLogger

func (s *ScyllaDBSource) SetLogger(logger hermod.Logger)

func (*ScyllaDBSource) SetState

func (s *ScyllaDBSource) SetState(state map[string]string)

func (*ScyllaDBSource) Snapshot

func (s *ScyllaDBSource) 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