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(ctx context.Context, tableName string, columnsInfo []warehouseutils.ColumnInfo) error
- func (rs *Redshift) AlterColumn(ctx context.Context, tableName, columnName, columnType string) (model.AlterTableResponse, error)
- func (rs *Redshift) Cleanup(ctx context.Context)
- func (rs *Redshift) Connect(ctx context.Context, warehouse model.Warehouse) (client.Client, error)
- func (rs *Redshift) CrashRecover(ctx context.Context)
- func (rs *Redshift) CreateSchema(ctx context.Context) (err error)
- func (rs *Redshift) CreateTable(ctx context.Context, tableName string, columns model.TableSchema) (err error)
- func (rs *Redshift) DeleteBy(ctx context.Context, tableNames []string, params warehouseutils.DeleteByParams) (err error)
- func (*Redshift) DownloadIdentityRules(context.Context, *misc.GZipWriter) (err error)
- func (rs *Redshift) DropTable(ctx context.Context, tableName string) (err error)
- func (*Redshift) ErrorMappings() []model.JobError
- func (rs *Redshift) FetchSchema(ctx context.Context) (model.Schema, model.Schema, error)
- func (rs *Redshift) GetTotalCountInTable(ctx context.Context, tableName string) (int64, error)
- func (*Redshift) IsEmpty(context.Context, model.Warehouse) (empty bool, err error)
- func (*Redshift) LoadIdentityMappingsTable(context.Context) (err error)
- func (*Redshift) LoadIdentityMergeRulesTable(context.Context) (err error)
- func (rs *Redshift) LoadTable(ctx context.Context, tableName string) error
- func (rs *Redshift) LoadTestTable(ctx context.Context, location, tableName string, _ map[string]interface{}, ...) (err error)
- func (rs *Redshift) LoadUserTables(ctx context.Context) map[string]error
- func (rs *Redshift) SetConnectionTimeout(timeout time.Duration)
- func (rs *Redshift) Setup(ctx context.Context, warehouse model.Warehouse, ...) (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(ctx context.Context, tableName string, columnsInfo []warehouseutils.ColumnInfo) error
func (*Redshift) AlterColumn ¶
func (*Redshift) CrashRecover ¶
func (*Redshift) CreateTable ¶
func (*Redshift) DeleteBy ¶
func (rs *Redshift) DeleteBy(ctx context.Context, tableNames []string, params warehouseutils.DeleteByParams) (err error)
func (*Redshift) DownloadIdentityRules ¶
func (*Redshift) ErrorMappings ¶
func (*Redshift) FetchSchema ¶
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.