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

# Functions

CockroachMinVersion returns true if the CockroachDB version string is at least the specified minimum.
CockroachSemver extracts the semantic version string from a cluster's reported version.
OpenMySQLAsTarget opens a database connection, returning it as a single connection.
OpenOracleAsTarget returns an unsupported error.
OpenPgxAsConn uses pgx to open a database connection, returning it as a single connection.
OpenPgxAsStaging uses pgx to open a database connection, returning it as a [types.StagingPool].
OpenPgxAsTarget uses pgx to open a database connection, returning it as a stdlib pool.
OpenTarget selects from target connector implementations based on the URL scheme contained in the connection string.
WithConnectionLifetime configures a connection lifetimes.
WithDiagnostics attaches information about the pool to the given [diag.Diagnostics] collector.
WithMetrics publishes prometheus metrics, using the given pool name.
WithPoolSize sets the nominal size of the database pool.
WithTestControls allows certain behaviors to be tweaked for testing.
WithTransactionTimeout imposes a best-effort attempt at limiting the duration of any given database transaction.

# Structs

TestControls allows certain behaviors to be tweaked for testing.

# Interfaces

Option abstracts over driver-specific configuration.