This repository explain how to use pgxgen tool
make install-tools
Create .env
file with your enviroments in root repository based on .env.example
file
createdb pgxgenexample
make migrate up
make start
// replace MIGRATION_NAME.
// Example: make db-craete-miration book_rating
make db-craete-miration MIGRATION_NAME
- Apply new migrations
- Edit
pgxgen.yaml
in root repository. Documentation available here - Execute command
make gensql
To override types use this documentation