Documentation ¶
Index ¶
Constants ¶
const ( ModeSnapshot = "snapshot" ModeCDC = "cdc" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CDC ¶
type CDC struct {
// contains filtered or unexported fields
}
CDC represents an implementation of a CDC iterator for Oracle.
type CDCParams ¶
type CDCParams struct { Repo *repository.Oracle Position *Position Table string TrackingTable string Trigger string OrderingColumn string KeyColumns []string Columns []string BatchSize int }
CDCParams represents an incoming params for the NewCDC function.
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator represents an implementation of an iterator for Oracle.
func (*Iterator) HasNext ¶
HasNext returns a bool indicating whether the iterator has the next record to return or not.
type Params ¶
type Params struct { Position *Position URL string Table string SnapshotTable string TrackingTable string Trigger string OrderingColumn string KeyColumns []string Snapshot bool Columns []string BatchSize int }
Params represents an incoming iterator params for the New function.
type Position ¶
type Position struct { // Mode represents current iterator mode. Mode Mode `json:"mode"` // LastProcessedVal represents the last processed value from ordering column. LastProcessedVal any `json:"last_processed_val"` TrackingTable string `json:"tracking_table"` Trigger string `json:"trigger"` SnapshotTable string `json:"snapshot_table"` }
Position represents Oracle position.
func ParseSDKPosition ¶
ParseSDKPosition parses sdk.Position and returns Position.
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
Snapshot represents an implementation of a Snapshot iterator for Oracle.
func NewSnapshot ¶
func NewSnapshot(ctx context.Context, params SnapshotParams) (*Snapshot, error)
NewSnapshot creates a new instance of the Snapshot iterator.
type SnapshotParams ¶
type SnapshotParams struct { Repo *repository.Oracle Position *Position Table string SnapshotTable string TrackingTable string Trigger string OrderingColumn string KeyColumns []string Columns []string BatchSize int ColumnTypes map[string]columntypes.ColumnDescription }
SnapshotParams represents an incoming params for the NewSnapshot function.