tablefinder

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 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(*SnapshotSchemaTableFinder)

func WithInstrumentation added in v0.6.0

func WithInstrumentation(i *otel.Instrumentation) Option

type SnapshotSchemaTableFinder added in v0.7.0

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

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

func NewSnapshotSchemaTableFinder added in v0.7.0

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

NewSnapshotSchemaTableFinder will return the generator on input wrapped with a schema & table finder that will explode the wildcard references in the snapshot request and translate them into all the postgres tables for the given schema, or all tables of all schemas in case of '*.*'.

func (*SnapshotSchemaTableFinder) Close added in v0.7.0

func (s *SnapshotSchemaTableFinder) Close() error

func (*SnapshotSchemaTableFinder) CreateSnapshot added in v0.7.0

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