This project has moved to github.com/printeers/trek.
At least version 13 of postgres is needed.
go install .
Create trek.yaml
:
model_name: <model_name>
db_name: <db_name>
db_users:
- <db_user_1>
- <db_user_2>
Create <model_name>.dbm
using pgModeler.
trek generate some-migration
Use the --dev
flag to continuously watch for file changes.
Take a look at the example/
directory.