package
1.0.5
Repository: https://github.com/cockroachdb/replicator.git
Documentation: pkg.go.dev

# Functions

AddMeta decorates the mutation with a standard set of properties.
HelpCommand returns an extended help command to print TypeScript bindings for the userscript API.
ProvideLoader is called by Wire to perform the initial script loading, parsing, and top-level api handling.
SourceName returns a standardized representation of a source name.

# Variables

NoOptions always returns an error when invoked.
Set is used by Wire.

# Structs

Config drives UserScript behavior.
FlagOptions adapts a pflag.FlagSet to the Options interface.
Loader is responsible for the first-pass execution of the user script.
A Source holds user-provided configuration options for a generic data-source.
A Target holds user-provided configuration options for a target table.
UserScript encapsulates a user-provided configuration expressed as a JavaScript program.

# Interfaces

Options is an injection point for a value that will receive any additional configuration from api.setOptions.

# Type aliases

DeleteKey is similar to Map in that it has the opportunity to modify or filter a mutation before subsequent processing.
A Dispatch function receives a source mutation and assigns mutations to some number of downstream tables.
A Map function may modify the mutations that are applied to a specific table.