Documentation
¶
Overview ¶
Package previewmigrate: Migration preview functionality for safe SQL testing Provides zero-cost error recovery by testing migrations in transactions that always rollback Features intelligent script discovery and integration with existing migration workflows Prevents dirty state issues in automated migration processes
previewmigrate: 用于安全 SQL 测试的迁移预览功能 通过在始终回滚的事务中测试迁移提供零成本错误恢复 具有智能脚本发现功能,与现有迁移工作流集成 防止自动化迁移过程中的脏状态问题
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPreviewCmd ¶
func NewPreviewCmd(param *migrationparam.MigrationParam, scriptsPath string) *cobra.Command
NewPreviewCmd creates preview command for migration dry-run with subcommands Uses MigrationParam interface for unified connection management and resource cleanup Ensures proper resource release after preview operations complete
NewPreviewCmd 创建具有子命令的迁移试运行预览命令 使用 MigrationParam 接口统一管理连接和资源清理 确保预览操作完成后正确释放资源
Types ¶
This section is empty.