Documentation ¶
Index ¶
- Constants
- Variables
- type Snowflake
- func (s *Snowflake) Close() error
- func (s *Snowflake) CreateStream(ctx context.Context, stream, table string) error
- func (s *Snowflake) CreateTrackingTable(ctx context.Context, trackingTable, table string) error
- func (s *Snowflake) GetMaxValue(ctx context.Context, table, orderingColumn string) (any, error)
- func (s *Snowflake) GetPrimaryKeys(ctx context.Context, table string) ([]string, error)
- func (s *Snowflake) GetRows(ctx context.Context, table, orderingColumn string, fields []string, ...) (*sqlx.Rows, error)
- func (s *Snowflake) GetTrackingData(ctx context.Context, stream, trackingTable string, fields []string, ...) ([]map[string]interface{}, error)
- func (s *Snowflake) TableExists(ctx context.Context, table string) (bool, error)
Constants ¶
View Source
const ( MetadataColumnAction = "METADATA$ACTION" MetadataColumnUpdate = "METADATA$ISUPDATE" MetadataColumnRow = "METADATA$ROW_ID" MetadataColumnTime = "METADATA$TS" )
Variables ¶
View Source
var MetadataFields = []string{MetadataColumnAction, MetadataColumnUpdate, MetadataColumnTime}
Functions ¶
This section is empty.
Types ¶
type Snowflake ¶
type Snowflake struct {
// contains filtered or unexported fields
}
Snowflake repository.
func (*Snowflake) CreateStream ¶
CreateStream create stream.
func (*Snowflake) CreateTrackingTable ¶
CreateTrackingTable create stream.
func (*Snowflake) GetMaxValue ¶ added in v0.3.1
GetMaxValue get max value by ordering column.
func (*Snowflake) GetPrimaryKeys ¶ added in v0.3.1
GetPrimaryKeys returns all primary keys of the table.
func (*Snowflake) GetRows ¶ added in v0.3.1
func (s *Snowflake) GetRows( ctx context.Context, table, orderingColumn string, fields []string, pos *position.Position, maxValue any, limit int, ) (*sqlx.Rows, error)
GetRows get rows with columns offset from table.
Click to show internal directories.
Click to hide internal directories.