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
Click to show internal directories.
Click to hide internal directories.