Documentation ¶
Index ¶
- func ColumnsWithDataTypes(columns map[string]string, prefix string) string
- func Connect(cred CredentialsT) (*sql.DB, error)
- func Init()
- type CredentialsT
- type HandleT
- func (ms *HandleT) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
- func (*HandleT) AlterColumn(_, _, _ string) (model.AlterTableResponse, error)
- func (ms *HandleT) Cleanup()
- func (ms *HandleT) Connect(warehouse warehouseutils.Warehouse) (client.Client, error)
- func (ms *HandleT) CrashRecover(warehouse warehouseutils.Warehouse) (err error)
- func (ms *HandleT) CreateSchema() (err error)
- func (ms *HandleT) CreateTable(tableName string, columnMap map[string]string) (err error)
- func (ms *HandleT) DeleteBy(tableNames []string, params warehouseutils.DeleteByParams) (err error)
- func (*HandleT) DownloadIdentityRules(*misc.GZipWriter) (err error)
- func (ms *HandleT) DownloadLoadFiles(tableName string) ([]string, error)
- func (ms *HandleT) DropTable(tableName string) (err error)
- func (ms *HandleT) ErrorMappings() []model.JobError
- func (ms *HandleT) FetchSchema(warehouse warehouseutils.Warehouse) (schema, unrecognizedSchema warehouseutils.SchemaT, err error)
- func (ms *HandleT) GetTotalCountInTable(ctx context.Context, tableName string) (total int64, err error)
- func (*HandleT) IsEmpty(_ warehouseutils.Warehouse) (empty bool, err error)
- func (*HandleT) LoadIdentityMappingsTable() (err error)
- func (*HandleT) LoadIdentityMergeRulesTable() (err error)
- func (ms *HandleT) LoadTable(tableName string) error
- func (ms *HandleT) LoadTestTable(_, tableName string, payloadMap map[string]interface{}, _ string) (err error)
- func (ms *HandleT) LoadUserTables() map[string]error
- func (ms *HandleT) SetConnectionTimeout(timeout time.Duration)
- func (ms *HandleT) Setup(warehouse warehouseutils.Warehouse, uploader warehouseutils.UploaderI) (err error)
- func (ms *HandleT) TestConnection(warehouse warehouseutils.Warehouse) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColumnsWithDataTypes ¶
Types ¶
type CredentialsT ¶
type CredentialsT struct { Host string DBName string User string Password string Port string SSLMode string TunnelInfo *tunnelling.TunnelInfo // contains filtered or unexported fields }
type HandleT ¶
type HandleT struct { Db *sql.DB Namespace string ObjectStorage string Warehouse warehouseutils.Warehouse Uploader warehouseutils.UploaderI ConnectTimeout time.Duration }
func (*HandleT) AddColumns ¶
func (ms *HandleT) AddColumns(tableName string, columnsInfo []warehouseutils.ColumnInfo) (err error)
func (*HandleT) AlterColumn ¶
func (*HandleT) AlterColumn(_, _, _ string) (model.AlterTableResponse, error)
func (*HandleT) CrashRecover ¶
func (ms *HandleT) CrashRecover(warehouse warehouseutils.Warehouse) (err error)
func (*HandleT) CreateSchema ¶
func (*HandleT) CreateTable ¶
func (*HandleT) DeleteBy ¶
func (ms *HandleT) DeleteBy(tableNames []string, params warehouseutils.DeleteByParams) (err error)
func (*HandleT) DownloadIdentityRules ¶
func (*HandleT) DownloadIdentityRules(*misc.GZipWriter) (err error)
func (*HandleT) DownloadLoadFiles ¶
func (*HandleT) ErrorMappings ¶
func (*HandleT) FetchSchema ¶
func (ms *HandleT) FetchSchema(warehouse warehouseutils.Warehouse) (schema, unrecognizedSchema warehouseutils.SchemaT, err error)
FetchSchema queries mssql and returns the schema associated with provided namespace
func (*HandleT) GetTotalCountInTable ¶
func (*HandleT) IsEmpty ¶
func (*HandleT) IsEmpty(_ warehouseutils.Warehouse) (empty bool, err error)
func (*HandleT) LoadIdentityMappingsTable ¶
func (*HandleT) LoadIdentityMergeRulesTable ¶
func (*HandleT) LoadTestTable ¶
func (*HandleT) LoadUserTables ¶
func (*HandleT) SetConnectionTimeout ¶
func (*HandleT) Setup ¶
func (ms *HandleT) Setup(warehouse warehouseutils.Warehouse, uploader warehouseutils.UploaderI) (err error)
func (*HandleT) TestConnection ¶
func (ms *HandleT) TestConnection(warehouse warehouseutils.Warehouse) (err error)
Click to show internal directories.
Click to hide internal directories.