Skip to content

sxwebdev/pgxgen-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to use pgxgen tool

This repository explain how to use pgxgen tool

Local development

Install tools

make install-tools

Enviroments

Create .env file with your enviroments in root repository based on .env.example file

Create database

createdb pgxgenexample

Make migrations

make migrate up

Start microservice

make start

Create new migration

// replace MIGRATION_NAME.
// Example: make db-craete-miration book_rating
make db-craete-miration MIGRATION_NAME

Generate crud sql and store

  • Apply new migrations
  • Edit pgxgen.yaml in root repository. Documentation available here
  • Execute command make gensql

To override types use this documentation

About

How to use pgxgen tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published