azuresynapse

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type HandleT

type HandleT struct {
	Db             *sql.DB
	Namespace      string
	ObjectStorage  string
	Warehouse      warehouseutils.Warehouse
	Uploader       warehouseutils.UploaderI
	ConnectTimeout time.Duration
}

func (*HandleT) AddColumns added in v1.3.0

func (as *HandleT) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)

func (*HandleT) AlterColumn

func (*HandleT) AlterColumn(_, _, _ string) (err error)

func (*HandleT) Cleanup

func (as *HandleT) Cleanup()

func (*HandleT) Connect

func (as *HandleT) Connect(warehouse warehouseutils.Warehouse) (client.Client, error)

func (*HandleT) CrashRecover

func (as *HandleT) CrashRecover(warehouse warehouseutils.Warehouse) (err error)

func (*HandleT) CreateSchema

func (as *HandleT) CreateSchema() (err error)

func (*HandleT) CreateTable

func (as *HandleT) CreateTable(tableName string, columnMap map[string]string) (err error)

func (*HandleT) DeleteBy added in v1.2.0

func (*HandleT) DownloadIdentityRules

func (*HandleT) DownloadIdentityRules(*misc.GZipWriter) (err error)

func (*HandleT) DownloadLoadFiles

func (as *HandleT) DownloadLoadFiles(tableName string) ([]string, error)

func (*HandleT) DropTable

func (as *HandleT) DropTable(tableName string) (err error)

func (*HandleT) FetchSchema

func (as *HandleT) FetchSchema(warehouse warehouseutils.Warehouse) (schema, unrecognizedSchema warehouseutils.SchemaT, err error)

FetchSchema queries SYNAPSE and returns the schema associated with provided namespace

func (*HandleT) GetTotalCountInTable

func (as *HandleT) GetTotalCountInTable(ctx context.Context, tableName string) (total int64, err error)

func (*HandleT) IsEmpty

func (*HandleT) IsEmpty(_ warehouseutils.Warehouse) (empty bool, err error)

func (*HandleT) LoadIdentityMappingsTable

func (*HandleT) LoadIdentityMappingsTable() (err error)

func (*HandleT) LoadIdentityMergeRulesTable

func (*HandleT) LoadIdentityMergeRulesTable() (err error)

func (*HandleT) LoadTable

func (as *HandleT) LoadTable(tableName string) error

func (*HandleT) LoadTestTable

func (as *HandleT) LoadTestTable(_, tableName string, payloadMap map[string]interface{}, _ string) (err error)

func (*HandleT) LoadUserTables

func (as *HandleT) LoadUserTables() map[string]error

func (*HandleT) SetConnectionTimeout

func (as *HandleT) SetConnectionTimeout(timeout time.Duration)

func (*HandleT) Setup

func (as *HandleT) Setup(warehouse warehouseutils.Warehouse, uploader warehouseutils.UploaderI) (err error)

func (*HandleT) TestConnection

func (as *HandleT) TestConnection(warehouse warehouseutils.Warehouse) (err error)

Jump to

Keyboard shortcuts

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