Documentation ¶
Overview ¶
Copyright © 2020 Marvin
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Variables
- func CreateDatabaseConnection(cfg *Database, addRole, logLevel string) error
- func CreateDatabaseReadWrite(cfg *Database) error
- func CreateDatabaseSchema(cfg *Database) error
- func GetBuildInCompatibleRuleRW() buildin.IBuildInCompatibleRule
- func GetBuildInDefaultValueRuleRW() buildin.IBuildInDefaultValueRule
- func GetBuildInRuleRecordRW() buildin.IBuildInRuleRecord
- func GetIAssessMigrateTaskRW() task.IAssessMigrateTask
- func GetIBuildInDatatypeRuleRW() buildin.IBuildInDatatypeRule
- func GetIDataCompareResultRW() task.IDataCompareResult
- func GetIDataCompareRuleRW() rule.IDataCompareRule
- func GetIDataCompareSummaryRW() task.IDataCompareSummary
- func GetIDataCompareTaskRW() task.IDataCompareTask
- func GetIDataMigrateRuleRW() rule.IDataMigrateRule
- func GetIDataMigrateSummaryRW() task.IDataMigrateSummary
- func GetIDataMigrateTaskRW() task.IDataMigrateTask
- func GetIDataScanRuleRW() rule.IDataScanRule
- func GetIDataScanSummaryRW() task.IDataScanSummary
- func GetIDataScanTaskRW() task.IDataScanTask
- func GetIDatasourceRW() datasource.IDatasource
- func GetIMigrateColumnRouteRW() rule.IColumnRouteRule
- func GetIMigrateSchemaRouteRW() rule.ISchemaRouteRule
- func GetIMigrateTableRouteRW() rule.ITableRouteRule
- func GetIMigrateTaskSequenceRW() rule.IMigrateTaskSequence
- func GetIMigrateTaskTableRW() rule.IMigrateTaskTable
- func GetIMsgDdlRewriteRW() consume.IMsgDdlRewrite
- func GetIMsgTopicPartitionRW() consume.IMsgTopicPartition
- func GetIParamsRW() params.IParams
- func GetISchemaMigrateTaskRW() task.ISchemaMigrateTask
- func GetISequenceMigrateSummaryRW() task.ISequenceMigrateSummary
- func GetISequenceMigrateTaskRW() task.ISequenceMigrateTask
- func GetISqlMigrateRuleRW() rule.ISqlMigrateRule
- func GetISqlMigrateSummaryRW() task.ISqlMigrateSummary
- func GetISqlMigrateTaskRW() task.ISqlMigrateTask
- func GetIStructCompareSummaryRW() task.IStructCompareSummary
- func GetIStructCompareTaskRW() task.IStructCompareTask
- func GetIStructMigrateColumnRuleRW() migrate.IStructMigrateColumnRule
- func GetIStructMigrateSchemaRuleRW() migrate.IStructMigrateSchemaRule
- func GetIStructMigrateSummaryRW() task.IStructMigrateSummary
- func GetIStructMigrateTableAttrsRuleRW() migrate.IStructMigrateTableAttrsRule
- func GetIStructMigrateTableRuleRW() migrate.IStructMigrateTableRule
- func GetIStructMigrateTaskRW() task.IStructMigrateTask
- func GetIStructMigrateTaskRuleRW() migrate.IStructMigrateTaskRule
- func GetITaskLogRW() task.ILog
- func GetITaskRW() task.ITask
- func Transaction(ctx context.Context, fc func(txnCtx context.Context) error) (err error)
- type Database
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDB *database
Functions ¶
func CreateDatabaseConnection ¶
CreateDatabaseConnection create database connection
func CreateDatabaseReadWrite ¶
func CreateDatabaseSchema ¶
func GetBuildInCompatibleRuleRW ¶
func GetBuildInCompatibleRuleRW() buildin.IBuildInCompatibleRule
func GetBuildInDefaultValueRuleRW ¶
func GetBuildInDefaultValueRuleRW() buildin.IBuildInDefaultValueRule
func GetBuildInRuleRecordRW ¶
func GetBuildInRuleRecordRW() buildin.IBuildInRuleRecord
func GetIAssessMigrateTaskRW ¶
func GetIAssessMigrateTaskRW() task.IAssessMigrateTask
func GetIBuildInDatatypeRuleRW ¶
func GetIBuildInDatatypeRuleRW() buildin.IBuildInDatatypeRule
func GetIDataCompareResultRW ¶ added in v0.0.6
func GetIDataCompareResultRW() task.IDataCompareResult
func GetIDataCompareRuleRW ¶
func GetIDataCompareRuleRW() rule.IDataCompareRule
func GetIDataCompareSummaryRW ¶
func GetIDataCompareSummaryRW() task.IDataCompareSummary
func GetIDataCompareTaskRW ¶
func GetIDataCompareTaskRW() task.IDataCompareTask
func GetIDataMigrateRuleRW ¶
func GetIDataMigrateRuleRW() rule.IDataMigrateRule
func GetIDataMigrateSummaryRW ¶
func GetIDataMigrateSummaryRW() task.IDataMigrateSummary
func GetIDataMigrateTaskRW ¶
func GetIDataMigrateTaskRW() task.IDataMigrateTask
func GetIDataScanRuleRW ¶
func GetIDataScanRuleRW() rule.IDataScanRule
func GetIDataScanSummaryRW ¶
func GetIDataScanSummaryRW() task.IDataScanSummary
func GetIDataScanTaskRW ¶
func GetIDataScanTaskRW() task.IDataScanTask
func GetIDatasourceRW ¶
func GetIDatasourceRW() datasource.IDatasource
func GetIMigrateColumnRouteRW ¶
func GetIMigrateColumnRouteRW() rule.IColumnRouteRule
func GetIMigrateSchemaRouteRW ¶
func GetIMigrateSchemaRouteRW() rule.ISchemaRouteRule
func GetIMigrateTableRouteRW ¶
func GetIMigrateTableRouteRW() rule.ITableRouteRule
func GetIMigrateTaskSequenceRW ¶ added in v0.0.9
func GetIMigrateTaskSequenceRW() rule.IMigrateTaskSequence
func GetIMigrateTaskTableRW ¶
func GetIMigrateTaskTableRW() rule.IMigrateTaskTable
func GetIMsgDdlRewriteRW ¶ added in v0.0.17
func GetIMsgDdlRewriteRW() consume.IMsgDdlRewrite
func GetIMsgTopicPartitionRW ¶ added in v0.0.17
func GetIMsgTopicPartitionRW() consume.IMsgTopicPartition
func GetIParamsRW ¶
func GetISchemaMigrateTaskRW ¶ added in v0.0.10
func GetISchemaMigrateTaskRW() task.ISchemaMigrateTask
func GetISequenceMigrateSummaryRW ¶ added in v0.0.13
func GetISequenceMigrateSummaryRW() task.ISequenceMigrateSummary
func GetISequenceMigrateTaskRW ¶ added in v0.0.10
func GetISequenceMigrateTaskRW() task.ISequenceMigrateTask
func GetISqlMigrateRuleRW ¶
func GetISqlMigrateRuleRW() rule.ISqlMigrateRule
func GetISqlMigrateSummaryRW ¶
func GetISqlMigrateSummaryRW() task.ISqlMigrateSummary
func GetISqlMigrateTaskRW ¶
func GetISqlMigrateTaskRW() task.ISqlMigrateTask
func GetIStructCompareSummaryRW ¶
func GetIStructCompareSummaryRW() task.IStructCompareSummary
func GetIStructCompareTaskRW ¶
func GetIStructCompareTaskRW() task.IStructCompareTask
func GetIStructMigrateColumnRuleRW ¶
func GetIStructMigrateColumnRuleRW() migrate.IStructMigrateColumnRule
func GetIStructMigrateSchemaRuleRW ¶
func GetIStructMigrateSchemaRuleRW() migrate.IStructMigrateSchemaRule
func GetIStructMigrateSummaryRW ¶
func GetIStructMigrateSummaryRW() task.IStructMigrateSummary
func GetIStructMigrateTableAttrsRuleRW ¶
func GetIStructMigrateTableAttrsRuleRW() migrate.IStructMigrateTableAttrsRule
func GetIStructMigrateTableRuleRW ¶
func GetIStructMigrateTableRuleRW() migrate.IStructMigrateTableRule
func GetIStructMigrateTaskRW ¶
func GetIStructMigrateTaskRW() task.IStructMigrateTask
func GetIStructMigrateTaskRuleRW ¶
func GetIStructMigrateTaskRuleRW() migrate.IStructMigrateTaskRule
func GetITaskLogRW ¶
func GetITaskRW ¶
Types ¶
type Database ¶
type Database struct { Host string `toml:"host" json:"host"` Port uint64 `toml:"port" json:"port"` Username string `toml:"username" json:"username"` Password string `toml:"password" json:"password"` Schema string `toml:"schema" json:"schema"` SlowThreshold uint64 `toml:"slowThreshold" json:"slowThreshold"` InitThread uint64 `toml:"initThread" json:"initThread"` }
Database is database configuration.
Click to show internal directories.
Click to hide internal directories.