Ezorm Gen Yaml (MySQL/MySQLr)
Scope
Generate Go code from ezorm YAML schema files for mysql/mysqlr using the ezorm CLI.
Prefer mysqlr unless the user explicitly requests mysql.
Read these files when command details or examples are needed:
- •
Makefile(target:gene2e) - •
e2e/mysql/ - •
e2e/mysqlr/If the localreferences/orassets/directories are missing, run:scripts/init.sh(orscripts/init.sh --forceto refresh). Validate withscripts/validate.sh. Ifbin/ezormis missing, runscripts/ensure-ezorm.shfirst.
Workflow
- •Confirm input YAML path(s) and output directory.
- •Choose goPackage and namespace (required for
ezorm gen). - •Use the mysql/mysqlr command pattern:
- •mysql:
bin/ezorm gen -i <yaml-or-dir> -o <out-dir> --goPackage <pkg> --namespace <ns> - •mysqlr:
bin/ezorm gen -i <yaml-or-dir> -o <out-dir> --goPackage <pkg> --namespace <ns>
- •mysql:
- •Output only the command(s) needed. Do not generate Go code in the response.
Output Rules
- •Emit shell command(s) only.
- •Do not invent paths; use the user-provided locations.
- •Prefer a single command per directory when input is a folder.