Compile Migrations

Compile SQL migration files into Go source code for embedding in binaries

c9s b10c3da 600 B Updated

File contents

Compile SQL migrations into Go code for all configured dialects.

Steps

  1. Find all rockhopper_*.yaml config files in the project root.
  2. If $ARGUMENTS is provided, use it as the base output directory. Otherwise, use pkg/migrations/<dialect> as the default output path for each dialect.
  3. For each config file, run:
    rockhopper compile --config <config_file> --output <output_dir>
    
  4. Show the generated Go files and confirm compilation succeeded.

c9s/bbgo/tree/main/.claude/skills/compile-migrations commit b10c3da7fd

Frequently asked questions

npx skillmds@latest add c9s/compile-migrations