azuresynapse

package
v1.10.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

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(ctx context.Context, tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)

func (*AzureSynapse) AlterColumn added in v1.7.0

func (*AzureSynapse) Cleanup added in v1.7.0

func (as *AzureSynapse) Cleanup(ctx context.Context)

func (*AzureSynapse) Connect added in v1.7.0

func (as *AzureSynapse) Connect(_ context.Context, warehouse model.Warehouse) (client.Client, error)

func (*AzureSynapse) CrashRecover added in v1.7.0

func (as *AzureSynapse) CrashRecover(ctx context.Context)

func (*AzureSynapse) CreateSchema added in v1.7.0

func (as *AzureSynapse) CreateSchema(ctx context.Context) (err error)

func (*AzureSynapse) CreateTable added in v1.7.0

func (as *AzureSynapse) CreateTable(ctx context.Context, tableName string, columnMap model.TableSchema) (err error)

func (*AzureSynapse) DeleteBy added in v1.7.0

func (*AzureSynapse) DownloadIdentityRules added in v1.7.0

func (*AzureSynapse) DownloadIdentityRules(context.Context, *misc.GZipWriter) (err error)

func (*AzureSynapse) DropTable added in v1.7.0

func (as *AzureSynapse) DropTable(ctx context.Context, 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

func (as *AzureSynapse) FetchSchema(ctx context.Context) (model.Schema, model.Schema, error)

FetchSchema returns the schema of the warehouse

func (*AzureSynapse) GetTotalCountInTable added in v1.7.0

func (as *AzureSynapse) GetTotalCountInTable(ctx context.Context, tableName string) (int64, error)

func (*AzureSynapse) IsEmpty added in v1.7.0

func (*AzureSynapse) IsEmpty(context.Context, model.Warehouse) (empty bool, err error)

func (*AzureSynapse) LoadIdentityMappingsTable added in v1.7.0

func (*AzureSynapse) LoadIdentityMappingsTable(context.Context) (err error)

func (*AzureSynapse) LoadIdentityMergeRulesTable added in v1.7.0

func (*AzureSynapse) LoadIdentityMergeRulesTable(context.Context) (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(ctx context.Context, _, 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(_ context.Context, warehouse model.Warehouse, uploader warehouseutils.Uploader) (err error)

func (*AzureSynapse) TestConnection added in v1.7.0

func (as *AzureSynapse) TestConnection(ctx context.Context, _ model.Warehouse) error

Jump to

Keyboard shortcuts

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