| name | compile-migrations |
| description | Compile SQL migration files into Go source code for embedding in binaries |
| disable-model-invocation | true |
| argument-hint | ["output_dir"] |
Compile SQL migrations into Go code for all configured dialects.
Steps
- Find all
rockhopper_*.yaml config files in the project root.
- If
$ARGUMENTS is provided, use it as the base output directory. Otherwise, use pkg/migrations/<dialect> as the default output path for each dialect.
- For each config file, run:
rockhopper compile --config <config_file> --output <output_dir>
- Show the generated Go files and confirm compilation succeeded.