Documentation ¶
Index ¶
- Constants
- func CheckAndIgnoreColumnAlreadyExistError(err error) bool
- func ColumnsWithDataTypes(columns model.TableSchema, prefix string) string
- func WithConfig(h *Redshift, config *config.Config)
- type Redshift
- func (rs *Redshift) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) error
- func (rs *Redshift) AlterColumn(tableName, columnName, columnType string) (model.AlterTableResponse, error)
- func (rs *Redshift) Cleanup()
- func (rs *Redshift) Connect(warehouse model.Warehouse) (client.Client, error)
- func (rs *Redshift) CrashRecover()
- func (rs *Redshift) CreateSchema() (err error)
- func (rs *Redshift) CreateTable(tableName string, columns model.TableSchema) (err error)
- func (rs *Redshift) DeleteBy(tableNames []string, params warehouseutils.DeleteByParams) (err error)
- func (*Redshift) DownloadIdentityRules(*misc.GZipWriter) (err error)
- func (rs *Redshift) DropTable(tableName string) (err error)
- func (*Redshift) ErrorMappings() []model.JobError
- func (rs *Redshift) FetchSchema(warehouse model.Warehouse) (schema, unrecognizedSchema model.Schema, err error)
- func (rs *Redshift) GetTotalCountInTable(ctx context.Context, tableName string) (int64, error)
- func (*Redshift) IsEmpty(_ model.Warehouse) (empty bool, err error)
- func (*Redshift) LoadIdentityMappingsTable() (err error)
- func (*Redshift) LoadIdentityMergeRulesTable() (err error)
- func (rs *Redshift) LoadTable(ctx context.Context, tableName string) error
- func (rs *Redshift) LoadTestTable(location, tableName string, _ map[string]interface{}, format string) (err error)
- func (rs *Redshift) LoadUserTables(ctx context.Context) map[string]error
- func (rs *Redshift) SetConnectionTimeout(timeout time.Duration)
- func (rs *Redshift) Setup(warehouse model.Warehouse, uploader warehouseutils.Uploader) (err error)
- func (rs *Redshift) TestConnection(ctx context.Context, _ model.Warehouse) error
- type RedshiftCredentials
- type S3Manifest
- type S3ManifestEntry
- type S3ManifestEntryMetadata
Constants ¶
View Source
const ( RSHost = "host" RSPort = "port" RSDbName = "database" RSUserName = "user" RSPassword = "password" )
String constants for redshift destination config
Variables ¶
This section is empty.
Functions ¶
func CheckAndIgnoreColumnAlreadyExistError ¶ added in v1.7.0
func ColumnsWithDataTypes ¶
func ColumnsWithDataTypes(columns model.TableSchema, prefix string) string
func WithConfig ¶
Types ¶
type Redshift ¶
type Redshift struct { DB *sqlmiddleware.DB Namespace string Warehouse model.Warehouse Uploader warehouseutils.Uploader ConnectTimeout time.Duration Logger logger.Logger SlowQueryThreshold time.Duration DedupWindow bool DedupWindowInHours time.Duration SkipDedupDestinationIDs []string SkipComputingUserLatestTraits bool EnableDeleteByJobs bool // contains filtered or unexported fields }
func (*Redshift) AddColumns ¶
func (rs *Redshift) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) error
func (*Redshift) AlterColumn ¶
func (rs *Redshift) AlterColumn(tableName, columnName, columnType string) (model.AlterTableResponse, error)
func (*Redshift) CrashRecover ¶
func (rs *Redshift) CrashRecover()
func (*Redshift) CreateSchema ¶
func (*Redshift) CreateTable ¶
func (rs *Redshift) CreateTable(tableName string, columns model.TableSchema) (err error)
func (*Redshift) DeleteBy ¶
func (rs *Redshift) DeleteBy(tableNames []string, params warehouseutils.DeleteByParams) (err error)
func (*Redshift) DownloadIdentityRules ¶
func (*Redshift) DownloadIdentityRules(*misc.GZipWriter) (err error)
func (*Redshift) ErrorMappings ¶
func (*Redshift) FetchSchema ¶
func (rs *Redshift) FetchSchema(warehouse model.Warehouse) (schema, unrecognizedSchema model.Schema, err error)
FetchSchema queries redshift and returns the schema associated with provided namespace
func (*Redshift) GetTotalCountInTable ¶
func (*Redshift) LoadIdentityMappingsTable ¶
func (*Redshift) LoadIdentityMergeRulesTable ¶
func (*Redshift) LoadTestTable ¶
func (*Redshift) LoadUserTables ¶
func (*Redshift) SetConnectionTimeout ¶
type RedshiftCredentials ¶
type RedshiftCredentials struct { Host string Port string DbName string Username string Password string TunnelInfo *tunnelling.TunnelInfo // contains filtered or unexported fields }
type S3Manifest ¶
type S3Manifest struct {
Entries []S3ManifestEntry `json:"entries"`
}
type S3ManifestEntry ¶
type S3ManifestEntry struct { Url string `json:"url"` Mandatory bool `json:"mandatory"` Metadata S3ManifestEntryMetadata `json:"meta"` }
type S3ManifestEntryMetadata ¶
type S3ManifestEntryMetadata struct {
ContentLength int64 `json:"content_length"`
}
Click to show internal directories.
Click to hide internal directories.