Versions in this module Expand all Collapse all v1 v1.0.13 May 9, 2023 Changes in this version + func GenMySQLInsertSQLStmtPrefix(targetSchemaName, targetTableName string, columns []string, safeMode bool) string + func GenMySQLPrepareBindVarStmt(columns, bindVarBatch int) string + func GenMySQLTablePrepareStmt(targetSchemaName, targetTableName string, columnFields []string, ...) string + func GetOracleIncrRecord(ctx context.Context, oracle *oracle.Oracle, sourceSchema, targetSchema string, ...) ([]logminer, error) + func IMigrate(ex migrate.Migrator) error + type IncrResult struct + Err error + Task IncrTask + type IncrTask struct + Ctx context.Context + DBTypeS string + DBTypeT string + GlobalSCN uint64 + MetaDB *meta.Meta + MySQL *mysql.MySQL + MySQLRedo []string + Operation string + OperationType string + OracleRedo string + SourceSchema string + SourceTable string + SourceTableSCN uint64 + TargetSchema string + TargetTable string + TaskMode string + func (p *IncrTask) IncrApply() error + func (p *IncrTask) String() string + type Job struct + func NewScheduleJob(size int, lcMap map[string][]logminer, done func()) *Job + func (j *Job) AddData(data logminer) + func (j *Job) Close() + func (j *Job) Schedule() + type Migrate struct + Cfg *config.Config + Ctx context.Context + MetaDB *meta.Meta + Mysql *mysql.MySQL + Oracle *oracle.Oracle + OracleMiner *oracle.Oracle + func NewFuller(ctx context.Context, cfg *config.Config) (*Migrate, error) + func NewIncr(ctx context.Context, cfg *config.Config) (*Migrate, error) + func (r *Migrate) AdjustTableSelectColumn(sourceTable string, oracleCollation bool) (string, error) + func (r *Migrate) Full() error + func (r *Migrate) FullPartSyncTable(fullPartTables []string) error + func (r *Migrate) FullWaitSyncTable(fullWaitTables []string, oracleCollation bool) error + func (r *Migrate) GetTableNameRule() (map[string]string, error) + func (r *Migrate) Incr() error + func (r *Migrate) InitWaitSyncTableChunk(csvWaitTables []string, oracleCollation bool) error + type Rows struct + ApplyThreads int + BatchSize int + ColumnNameS []string + Ctx context.Context + Meta *meta.Meta + MySQL *mysql.MySQL + Oracle *oracle.Oracle + ReadChannel chan []map[string]string + SafeMode bool + SyncMeta meta.FullSyncMeta + WriteChannel chan string + func NewRows(ctx context.Context, syncMeta meta.FullSyncMeta, oracle *oracle.Oracle, ...) *Rows + func (t *Rows) ApplyData() error + func (t *Rows) ProcessData() error + func (t *Rows) ReadData() error + type Stmt struct + Before map[string]interface{} + Columns []string + Data map[string]interface{} + Operation string + Schema string + Table string + WhereExpr string + func (v *Stmt) Enter(in ast.Node) (ast.Node, bool) + func (v *Stmt) Leave(in ast.Node) (ast.Node, bool) + func (v *Stmt) Marshal() string