Documentation ¶
Index ¶
Constants ¶
View Source
const (
Conduit = "conduit"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CDCIterator ¶
type CDCIterator struct {
// contains filtered or unexported fields
}
CDCIterator to iterate snowflake objects.
func NewCDCIterator ¶
func NewCDCIterator( snowflake Repository, table string, keys, columns []string, index, offset, butchSize int, currentBatch []map[string]interface{}, ) *CDCIterator
func (*CDCIterator) HasNext ¶
func (c *CDCIterator) HasNext(ctx context.Context) (bool, error)
HasNext check ability to get next record.
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator combined iterator.
func New ¶
func New( ctx context.Context, conn, table, orderingColumn string, keys, columns []string, batchSize int, snapshot bool, pos opencdc.Position, ) (*Iterator, error)
New iterator.
type Repository ¶
type Repository interface { // GetRows - get rows from table. GetRows(ctx context.Context, table, orderingColumn string, fields []string, pos *position.Position, maxValue any, limit int) (*sqlx.Rows, error) // CreateStream - create stream. CreateStream(ctx context.Context, stream, table string) error // GetTrackingData - get rows from tracking table. GetTrackingData(ctx context.Context, stream, trackingTable string, fields []string, offset, limit int, ) ([]map[string]interface{}, error) // CreateTrackingTable - create tracking table. CreateTrackingTable(ctx context.Context, trackingTable, table string) error // GetMaxValue get max value by ordering column. GetMaxValue(ctx context.Context, table, orderingColumn string) (any, error) // Close - shutdown repository. Close() error // GetPrimaryKeys returns all primary keys of the table. GetPrimaryKeys(ctx context.Context, table string) ([]string, error) }
Repository interface.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.