Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanUseOnlineDDL ¶
CanUseOnlineDDL checks if the SQL statement can use Online DDL This is a simplified check - MySQL/MariaDB would actually validate this
func ExtractAlterStatement ¶
ExtractAlterStatement extracts the ALTER statement part from SQL
Types ¶
type BackupMethod ¶
type BackupMethod string
BackupMethod represents the type of backup to perform
const ( BackupNone BackupMethod = "none" BackupMysqldump BackupMethod = "mysqldump" BackupXtrabackup BackupMethod = "xtrabackup" )
type ExecuteOptions ¶
type ExecuteOptions struct {
TaskID int
StatementIndex int
SQL string
TableName string
Target *TableInfo
BackupMethod BackupMethod
OkPTOSC bool
OkOnlineDDL bool
Config *config.Config // Configuration with paths and directories
Debug bool // Enable debug output (print commands and outputs)
}
ExecuteOptions contains options for schema change execution
type ExecuteResult ¶
type ExecuteResult struct {
BackupPerformed bool
BackupPath string
ChangeExecuted bool
MethodUsed string
Warnings []string
Errors []string
}
ExecuteResult represents the result of Phase 2 execution
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
NewExecutor creates a new executor instance
func (*Executor) Execute ¶
func (e *Executor) Execute(options ExecuteOptions) (*ExecuteResult, error)
Execute performs Phase 2 schema change execution
Click to show internal directories.
Click to hide internal directories.