Documentation ¶
Index ¶
- func Init()
- type HandleT
- func (as *HandleT) AddColumn(tableName, columnName, columnType string) (err error)
- func (as *HandleT) AlterColumn(tableName, columnName, columnType string) (err error)
- func (as *HandleT) Cleanup()
- func (as *HandleT) Connect(warehouse warehouseutils.WarehouseT) (client.Client, error)
- func (as *HandleT) CrashRecover(warehouse warehouseutils.WarehouseT) (err error)
- func (as *HandleT) CreateSchema() (err error)
- func (as *HandleT) CreateTable(tableName string, columnMap map[string]string) (err error)
- func (as *HandleT) DownloadIdentityRules(*misc.GZipWriter) (err error)
- func (as *HandleT) DownloadLoadFiles(tableName string) ([]string, error)
- func (as *HandleT) DropTable(tableName string) (err error)
- func (as *HandleT) FetchSchema(warehouse warehouseutils.WarehouseT) (schema warehouseutils.SchemaT, err error)
- func (as *HandleT) GetTotalCountInTable(tableName string) (total int64, err error)
- func (as *HandleT) IsEmpty(warehouse warehouseutils.WarehouseT) (empty bool, err error)
- func (as *HandleT) LoadIdentityMappingsTable() (err error)
- func (as *HandleT) LoadIdentityMergeRulesTable() (err error)
- func (as *HandleT) LoadTable(tableName string) error
- func (as *HandleT) LoadTestTable(location, tableName string, payloadMap map[string]interface{}, format string) (err error)
- func (as *HandleT) LoadUserTables() map[string]error
- func (as *HandleT) SetConnectionTimeout(timeout time.Duration)
- func (as *HandleT) Setup(warehouse warehouseutils.WarehouseT, uploader warehouseutils.UploaderI) (err error)
- func (as *HandleT) TestConnection(warehouse warehouseutils.WarehouseT) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandleT ¶
type HandleT struct { Db *sql.DB Namespace string ObjectStorage string Warehouse warehouseutils.WarehouseT Uploader warehouseutils.UploaderI ConnectTimeout time.Duration }
func (*HandleT) AlterColumn ¶
func (*HandleT) Connect ¶
func (as *HandleT) Connect(warehouse warehouseutils.WarehouseT) (client.Client, error)
func (*HandleT) CrashRecover ¶
func (as *HandleT) CrashRecover(warehouse warehouseutils.WarehouseT) (err error)
func (*HandleT) CreateSchema ¶
func (*HandleT) CreateTable ¶
func (*HandleT) DownloadIdentityRules ¶
func (as *HandleT) DownloadIdentityRules(*misc.GZipWriter) (err error)
func (*HandleT) DownloadLoadFiles ¶
func (*HandleT) FetchSchema ¶
func (as *HandleT) FetchSchema(warehouse warehouseutils.WarehouseT) (schema warehouseutils.SchemaT, err error)
FetchSchema queries SYNAPSE and returns the schema associated with provided namespace
func (*HandleT) GetTotalCountInTable ¶
func (*HandleT) IsEmpty ¶
func (as *HandleT) IsEmpty(warehouse warehouseutils.WarehouseT) (empty bool, err error)
func (*HandleT) LoadIdentityMappingsTable ¶
func (*HandleT) LoadIdentityMergeRulesTable ¶
func (*HandleT) LoadTestTable ¶
func (*HandleT) LoadUserTables ¶
func (*HandleT) SetConnectionTimeout ¶
func (*HandleT) Setup ¶
func (as *HandleT) Setup(warehouse warehouseutils.WarehouseT, uploader warehouseutils.UploaderI) (err error)
func (*HandleT) TestConnection ¶
func (as *HandleT) TestConnection(warehouse warehouseutils.WarehouseT) (err error)
Click to show internal directories.
Click to hide internal directories.