coreinterfaces

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	// OpenDB opens a connection to the database
	OpenDB() (*sql.DB, error)
}

type Connector

type Connector interface {
	// InitSchema initializes the schema of the table
	InitSchema(columns []cloudstorage.TableCol) error
	// CopyTableSchema copies the table schema from the source database to the Data Warehouse
	CopyTableSchema(sourceDatabase string, sourceTable string, sourceTiDBConn *sql.DB) error
	// LoadSnapshot loads the snapshot file into the Data Warehouse
	LoadSnapshot(targetTable, filePath string) error
	// ExecDDL executes the DDL statements in Data Warehouse
	ExecDDL(tableDef cloudstorage.TableDefinition) error
	// LoadIncrement loads the increment data into the Data Warehouse
	LoadIncrement(tableDef cloudstorage.TableDefinition, filePath string) error
	// Close closes the connection to the Data Warehouse
	Close()
}

Jump to

Keyboard shortcuts

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