Documentation ¶
Index ¶
- type Deltalake
- func (d *Deltalake) AddColumns(ctx context.Context, tableName string, columnsInfo []warehouseutils.ColumnInfo) error
- func (*Deltalake) AlterColumn(context.Context, string, string, string) (model.AlterTableResponse, error)
- func (d *Deltalake) Cleanup(ctx context.Context)
- func (d *Deltalake) Connect(_ context.Context, warehouse model.Warehouse) (warehouseclient.Client, error)
- func (d *Deltalake) CrashRecover(ctx context.Context)
- func (d *Deltalake) CreateSchema(ctx context.Context) error
- func (d *Deltalake) CreateTable(ctx context.Context, tableName string, columns model.TableSchema) error
- func (*Deltalake) DeleteBy(context.Context, []string, warehouseutils.DeleteByParams) error
- func (*Deltalake) DownloadIdentityRules(context.Context, *misc.GZipWriter) error
- func (d *Deltalake) DropTable(ctx context.Context, tableName string) error
- func (*Deltalake) ErrorMappings() []model.JobError
- func (d *Deltalake) FetchSchema(ctx context.Context) (model.Schema, model.Schema, error)
- func (d *Deltalake) GetTotalCountInTable(ctx context.Context, tableName string) (int64, error)
- func (*Deltalake) IsEmpty(context.Context, model.Warehouse) (bool, error)
- func (*Deltalake) LoadIdentityMappingsTable(context.Context) error
- func (*Deltalake) LoadIdentityMergeRulesTable(context.Context) error
- func (d *Deltalake) LoadTable(ctx context.Context, tableName string) error
- func (d *Deltalake) LoadTestTable(ctx context.Context, location, tableName string, _ map[string]interface{}, ...) error
- func (d *Deltalake) LoadUserTables(ctx context.Context) map[string]error
- func (d *Deltalake) SetConnectionTimeout(timeout time.Duration)
- func (d *Deltalake) Setup(_ context.Context, warehouse model.Warehouse, uploader warehouseutils.Uploader) error
- func (d *Deltalake) TestConnection(ctx context.Context, _ model.Warehouse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deltalake ¶
type Deltalake struct { DB *sqlmiddleware.DB Namespace string ObjectStorage string Warehouse model.Warehouse Uploader warehouseutils.Uploader // contains filtered or unexported fields }
func (*Deltalake) AddColumns ¶
func (d *Deltalake) AddColumns(ctx context.Context, tableName string, columnsInfo []warehouseutils.ColumnInfo) error
AddColumns adds columns to the table.
func (*Deltalake) AlterColumn ¶
func (*Deltalake) AlterColumn(context.Context, string, string, string) (model.AlterTableResponse, error)
AlterColumn alters a column in the warehouse
func (*Deltalake) Connect ¶
func (d *Deltalake) Connect(_ context.Context, warehouse model.Warehouse) (warehouseclient.Client, error)
Connect returns Client
func (*Deltalake) CrashRecover ¶
CrashRecover crash recover scenarios
func (*Deltalake) CreateSchema ¶
CreateSchema creates a schema in the warehouse if it does not exist.
func (*Deltalake) CreateTable ¶
func (d *Deltalake) CreateTable(ctx context.Context, tableName string, columns model.TableSchema) error
CreateTable creates a table in the warehouse.
func (*Deltalake) DeleteBy ¶
func (*Deltalake) DeleteBy(context.Context, []string, warehouseutils.DeleteByParams) error
func (*Deltalake) DownloadIdentityRules ¶
DownloadIdentityRules downloadchecking if schema exists identity rules
func (*Deltalake) ErrorMappings ¶
ErrorMappings returns the error mappings
func (*Deltalake) FetchSchema ¶
FetchSchema fetches the schema from the warehouse
func (*Deltalake) GetTotalCountInTable ¶
GetTotalCountInTable returns the total count in the table
func (*Deltalake) LoadIdentityMappingsTable ¶
LoadIdentityMappingsTable loads identifies mappings table
func (*Deltalake) LoadIdentityMergeRulesTable ¶
LoadIdentityMergeRulesTable loads identifies merge rules tables
func (*Deltalake) LoadTestTable ¶
func (d *Deltalake) LoadTestTable(ctx context.Context, location, tableName string, _ map[string]interface{}, format string) error
LoadTestTable loads the test table
func (*Deltalake) LoadUserTables ¶
LoadUserTables loads user tables
func (*Deltalake) SetConnectionTimeout ¶
SetConnectionTimeout sets the connection timeout