cdc

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunOnce

func RunOnce(
	ctx context.Context,
	cfg Config,
	s3Client S3ObjectClient,
	dryRun bool,
	logger *zap.Logger,
	schemaRegistry forma.SchemaRegistry,
) error

RunOnce performs one full CDC flush pass across all schemas with unflushed rows.

Types

type Config

type Config = internalcdc.CDCConfig

Config controls change_log flushing and export behavior.

type FlushRunner

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

FlushRunner reuses AWS/S3/DuckDB initialization across multiple flush passes.

func NewFlushRunner

func NewFlushRunner(logger *zap.Logger) *FlushRunner

NewFlushRunner creates a reusable CDC flush runner.

func NewRunner

func NewRunner(logger *zap.Logger) *FlushRunner

NewRunner creates a reusable CDC flush runner.

func (*FlushRunner) Close

func (r *FlushRunner) Close() error

Close releases any cached DuckDB exporters held by the runner.

func (*FlushRunner) RunOnce

func (r *FlushRunner) RunOnce(
	ctx context.Context,
	cfg Config,
	s3Client S3ObjectClient,
	dryRun bool,
	schemaRegistry forma.SchemaRegistry,
) error

RunOnce performs one full CDC flush pass using the reusable runner.

type Runner

type Runner = FlushRunner

Runner is kept as a compatibility alias for FlushRunner.

type S3FullClient

type S3FullClient = internalcdc.S3FullClient

S3FullClient extends S3ObjectClient with manifest read/write operations.

type S3ObjectClient

type S3ObjectClient = internalcdc.S3ObjectClient

S3ObjectClient is the minimal S3 interface required by the flush path.

Jump to

Keyboard shortcuts

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