repository

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetadataColumnAction = "METADATA$ACTION"
	MetadataColumnUpdate = "METADATA$ISUPDATE"
	MetadataColumnRow    = "METADATA$ROW_ID"
	MetadataColumnTime   = "METADATA$TS"
)

Variables

Functions

This section is empty.

Types

type Snowflake

type Snowflake struct {
	// contains filtered or unexported fields
}

Snowflake repository.

func Create

func Create(ctx context.Context, connectionData string) (*Snowflake, error)

Create storage.

func (*Snowflake) Close

func (s *Snowflake) Close() error

Close conn.

func (*Snowflake) CreateStream

func (s *Snowflake) CreateStream(ctx context.Context, stream, table string) error

CreateStream create stream.

func (*Snowflake) CreateTrackingTable

func (s *Snowflake) CreateTrackingTable(ctx context.Context, trackingTable, table string) error

CreateTrackingTable create stream.

func (*Snowflake) GetData

func (s *Snowflake) GetData(
	ctx context.Context,
	table, key string,
	fields []string,
	offset, limit int,
) ([]map[string]interface{}, error)

GetData get rows with columns offset from table.

func (*Snowflake) GetTrackingData

func (s *Snowflake) GetTrackingData(
	ctx context.Context,
	stream, trackingTable string,
	fields []string,
	offset, limit int,
) ([]map[string]interface{}, error)

GetTrackingData get data from tracking table.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL