Documentation
¶
Index ¶
- Constants
- Variables
- func NewCRDBSource(ctx context.Context, settings Settings, conn *dbconn.PGConn, ...) (*crdbSource, error)
- func NewMySQLSource(ctx context.Context, settings Settings, conn *dbconn.MySQLConn) (*mysqlSource, error)
- func NewPGSource(ctx context.Context, settings Settings, conn *dbconn.PGConn) (*pgSource, error)
- type PGReplicationSlotSettings
- type Settings
- type Source
- type SourceConn
Constants ¶
View Source
const GTIDHelpInstructions = `please ensure that you have GTID-based replication enabled`
Variables ¶
View Source
var DefaultReplicatorFlags = map[string]string{"-v": ""}
DefaultReplicatorFlags are flags that are dialect agnostic ones that are passed into the replicator command.
Functions ¶
func NewCRDBSource ¶
func NewMySQLSource ¶
Types ¶
type Source ¶
type Source interface {
CDCCursor() string
Conn(ctx context.Context) (SourceConn, error)
Close(ctx context.Context) error
// HistoryRetention means to extend the expiration of a protected timestamp (PTS). A
// SELECT ... AS OF SYSTEM TIME command with a PTS will not be invalidated by garbage collection.
// A PTS is created when creating the
// cockroachdb datasource (i.e. NewCRDBSource()) via the crdb_internal.protect_mvcc_history(<timestamp>, <lifetime>,
// <description>).
// At time t, if extend the history retention job, the job's expiration timestamp will be updated to {t + <lifetime>}.
HistoryRetentionJobManagement(ctx context.Context, logger zerolog.Logger, exportFinished chan struct{}, renewInterval time.Duration, extensionCnt *int64, testOnly bool, ts *testutils.FetchTestingKnobs) (jobManagementFinished *errgroup.Group)
ReplicatorCommand(bin string, target dbconn.Conn, db tree.Name, sc tree.Name, replicatorArgs string) (*exec.Cmd, error)
}
type SourceConn ¶
Click to show internal directories.
Click to hide internal directories.