Documentation ¶
Index ¶
- Constants
- func ColumnsWithDataTypes(columns model.TableSchema, prefix string) string
- func WithConfig(h *Snowflake, config *config.Config)
- type Credentials
- type Snowflake
- func (sf *Snowflake) AddColumns(ctx context.Context, tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
- func (*Snowflake) AlterColumn(context.Context, string, string, string) (model.AlterTableResponse, error)
- func (sf *Snowflake) Cleanup(context.Context)
- func (sf *Snowflake) Connect(ctx context.Context, warehouse model.Warehouse) (client.Client, error)
- func (*Snowflake) CrashRecover(context.Context)
- func (sf *Snowflake) CreateSchema(ctx context.Context) (err error)
- func (sf *Snowflake) CreateTable(ctx context.Context, tableName string, columnMap model.TableSchema) (err error)
- func (sf *Snowflake) DeleteBy(ctx context.Context, tableNames []string, params warehouseutils.DeleteByParams) (err error)
- func (sf *Snowflake) DownloadIdentityRules(ctx context.Context, gzWriter *misc.GZipWriter) (err error)
- func (sf *Snowflake) DropTable(ctx context.Context, tableName string) (err error)
- func (*Snowflake) ErrorMappings() []model.JobError
- func (sf *Snowflake) FetchSchema(ctx context.Context) (model.Schema, model.Schema, error)
- func (sf *Snowflake) GetTotalCountInTable(ctx context.Context, tableName string) (int64, error)
- func (sf *Snowflake) IsEmpty(ctx context.Context, warehouse model.Warehouse) (empty bool, err error)
- func (sf *Snowflake) LoadIdentityMappingsTable(ctx context.Context) (err error)
- func (sf *Snowflake) LoadIdentityMergeRulesTable(ctx context.Context) (err error)
- func (sf *Snowflake) LoadTable(ctx context.Context, tableName string) error
- func (sf *Snowflake) LoadTestTable(ctx context.Context, location, tableName string, _ map[string]interface{}, ...) (err error)
- func (sf *Snowflake) LoadUserTables(ctx context.Context) map[string]error
- func (sf *Snowflake) SetConnectionTimeout(timeout time.Duration)
- func (sf *Snowflake) Setup(ctx context.Context, warehouse model.Warehouse, ...) (err error)
- func (sf *Snowflake) TestConnection(ctx context.Context, _ model.Warehouse) error
Constants ¶
View Source
const ( StorageIntegration = "storageIntegration" Account = "account" Warehouse = "warehouse" Database = "database" User = "user" Role = "role" Password = "password" Application = "Rudderstack_Warehouse" )
String constants for snowflake destination config
Variables ¶
This section is empty.
Functions ¶
func ColumnsWithDataTypes ¶
func ColumnsWithDataTypes(columns model.TableSchema, prefix string) string
func WithConfig ¶ added in v1.7.0
Types ¶
type Credentials ¶ added in v1.7.0
type Snowflake ¶ added in v1.7.0
type Snowflake struct { DB *sqlmiddleware.DB Namespace string CloudProvider string ObjectStorage string Warehouse model.Warehouse Uploader warehouseutils.Uploader ConnectTimeout time.Duration Logger logger.Logger SlowQueryThreshold time.Duration EnableDeleteByJobs bool // contains filtered or unexported fields }
func (*Snowflake) AddColumns ¶ added in v1.7.0
func (sf *Snowflake) AddColumns(ctx context.Context, tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
func (*Snowflake) AlterColumn ¶ added in v1.7.0
func (*Snowflake) CrashRecover ¶ added in v1.7.0
func (*Snowflake) CreateSchema ¶ added in v1.7.0
func (*Snowflake) CreateTable ¶ added in v1.7.0
func (*Snowflake) DeleteBy ¶ added in v1.7.0
func (sf *Snowflake) DeleteBy(ctx context.Context, tableNames []string, params warehouseutils.DeleteByParams) (err error)
func (*Snowflake) DownloadIdentityRules ¶ added in v1.7.0
func (sf *Snowflake) DownloadIdentityRules(ctx context.Context, gzWriter *misc.GZipWriter) (err error)
DownloadIdentityRules gets distinct combinations of anonymous_id, user_id from tables in warehouse
func (*Snowflake) ErrorMappings ¶ added in v1.7.0
func (*Snowflake) FetchSchema ¶ added in v1.7.0
FetchSchema queries the snowflake database and returns the schema
func (*Snowflake) GetTotalCountInTable ¶ added in v1.7.0
func (*Snowflake) LoadIdentityMappingsTable ¶ added in v1.7.0
func (*Snowflake) LoadIdentityMergeRulesTable ¶ added in v1.7.0
func (*Snowflake) LoadTestTable ¶ added in v1.7.0
func (*Snowflake) LoadUserTables ¶ added in v1.7.0
func (*Snowflake) SetConnectionTimeout ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.