Documentation ¶
Index ¶
- func WithConfig(h *AzureSynapse, config *config.Config)
- type AzureSynapse
- func (as *AzureSynapse) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
- func (*AzureSynapse) AlterColumn(_, _, _ string) (model.AlterTableResponse, error)
- func (as *AzureSynapse) Cleanup()
- func (as *AzureSynapse) Connect(warehouse model.Warehouse) (client.Client, error)
- func (as *AzureSynapse) CrashRecover()
- func (as *AzureSynapse) CreateSchema() (err error)
- func (as *AzureSynapse) CreateTable(tableName string, columnMap model.TableSchema) (err error)
- func (*AzureSynapse) DeleteBy([]string, warehouseutils.DeleteByParams) error
- func (*AzureSynapse) DownloadIdentityRules(*misc.GZipWriter) (err error)
- func (as *AzureSynapse) DropTable(tableName string) (err error)
- func (*AzureSynapse) ErrorMappings() []model.JobError
- func (as *AzureSynapse) FetchSchema() (model.Schema, model.Schema, error)
- func (as *AzureSynapse) GetTotalCountInTable(ctx context.Context, tableName string) (int64, error)
- func (*AzureSynapse) IsEmpty(_ model.Warehouse) (empty bool, err error)
- func (*AzureSynapse) LoadIdentityMappingsTable() (err error)
- func (*AzureSynapse) LoadIdentityMergeRulesTable() (err error)
- func (as *AzureSynapse) LoadTable(ctx context.Context, tableName string) error
- func (as *AzureSynapse) LoadTestTable(_, tableName string, payloadMap map[string]interface{}, _ string) (err error)
- func (as *AzureSynapse) LoadUserTables(ctx context.Context) map[string]error
- func (as *AzureSynapse) SetConnectionTimeout(timeout time.Duration)
- func (as *AzureSynapse) Setup(warehouse model.Warehouse, uploader warehouseutils.Uploader) (err error)
- func (as *AzureSynapse) TestConnection(ctx context.Context, _ model.Warehouse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithConfig ¶ added in v1.7.0
func WithConfig(h *AzureSynapse, config *config.Config)
Types ¶
type AzureSynapse ¶ added in v1.7.0
type AzureSynapse struct { DB *sql.DB Namespace string ObjectStorage string Warehouse model.Warehouse Uploader warehouseutils.Uploader NumWorkersDownloadLoadFiles int Logger logger.Logger LoadFileDownLoader downloader.Downloader ConnectTimeout time.Duration }
func New ¶ added in v1.8.0
func New() *AzureSynapse
func (*AzureSynapse) AddColumns ¶ added in v1.7.0
func (as *AzureSynapse) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
func (*AzureSynapse) AlterColumn ¶ added in v1.7.0
func (*AzureSynapse) AlterColumn(_, _, _ string) (model.AlterTableResponse, error)
func (*AzureSynapse) Cleanup ¶ added in v1.7.0
func (as *AzureSynapse) Cleanup()
func (*AzureSynapse) CrashRecover ¶ added in v1.7.0
func (as *AzureSynapse) CrashRecover()
func (*AzureSynapse) CreateSchema ¶ added in v1.7.0
func (as *AzureSynapse) CreateSchema() (err error)
func (*AzureSynapse) CreateTable ¶ added in v1.7.0
func (as *AzureSynapse) CreateTable(tableName string, columnMap model.TableSchema) (err error)
func (*AzureSynapse) DeleteBy ¶ added in v1.7.0
func (*AzureSynapse) DeleteBy([]string, warehouseutils.DeleteByParams) error
func (*AzureSynapse) DownloadIdentityRules ¶ added in v1.7.0
func (*AzureSynapse) DownloadIdentityRules(*misc.GZipWriter) (err error)
func (*AzureSynapse) DropTable ¶ added in v1.7.0
func (as *AzureSynapse) DropTable(tableName string) (err error)
func (*AzureSynapse) ErrorMappings ¶ added in v1.7.0
func (*AzureSynapse) ErrorMappings() []model.JobError
func (*AzureSynapse) FetchSchema ¶ added in v1.7.0
FetchSchema returns the schema of the warehouse
func (*AzureSynapse) GetTotalCountInTable ¶ added in v1.7.0
func (*AzureSynapse) IsEmpty ¶ added in v1.7.0
func (*AzureSynapse) IsEmpty(_ model.Warehouse) (empty bool, err error)
func (*AzureSynapse) LoadIdentityMappingsTable ¶ added in v1.7.0
func (*AzureSynapse) LoadIdentityMappingsTable() (err error)
func (*AzureSynapse) LoadIdentityMergeRulesTable ¶ added in v1.7.0
func (*AzureSynapse) LoadIdentityMergeRulesTable() (err error)
func (*AzureSynapse) LoadTable ¶ added in v1.7.0
func (as *AzureSynapse) LoadTable(ctx context.Context, tableName string) error
func (*AzureSynapse) LoadTestTable ¶ added in v1.7.0
func (as *AzureSynapse) LoadTestTable(_, tableName string, payloadMap map[string]interface{}, _ string) (err error)
func (*AzureSynapse) LoadUserTables ¶ added in v1.7.0
func (as *AzureSynapse) LoadUserTables(ctx context.Context) map[string]error
func (*AzureSynapse) SetConnectionTimeout ¶ added in v1.7.0
func (as *AzureSynapse) SetConnectionTimeout(timeout time.Duration)
func (*AzureSynapse) Setup ¶ added in v1.7.0
func (as *AzureSynapse) Setup(warehouse model.Warehouse, uploader warehouseutils.Uploader) (err error)
func (*AzureSynapse) TestConnection ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.