tablefinder

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v0.6.0

type Option func(*SnapshotTableFinder)

func WithInstrumentation added in v0.6.0

func WithInstrumentation(i *otel.Instrumentation) Option

type SnapshotTableFinder

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

SnapshotTableFinder is a decorator around a snapshot generator that will explode the wildcard references in the snapshot requests and replace them by all the schema tables in postgres.

func NewSnapshotTableFinder

func NewSnapshotTableFinder(ctx context.Context, pgurl string, generator generator.SnapshotGenerator, opts ...Option) (*SnapshotTableFinder, error)

NewSnapshotTableFinder will return the generator on input wrapped with a table finder that will explode the wildcard references in the snapshot request and translate them into all the postgres tables for the given schema.

func (*SnapshotTableFinder) Close

func (s *SnapshotTableFinder) Close() error

func (*SnapshotTableFinder) CreateSnapshot

func (s *SnapshotTableFinder) CreateSnapshot(ctx context.Context, ss *snapshot.Snapshot) error

Jump to

Keyboard shortcuts

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