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