Skip to content

DanielFGray/pg-sourcerer

Repository files navigation

pg-sourcerer

a tool to generate code from Postgres introspection data

getting started

currently this is still a work-in-progress. to see what's working so far, after cloning the repo:

npm install
cd examples
npm install
npm setup

the setup script will

  • prompt for questions and generate a .env file
  • start postgres in a docker container
  • run migrations using graphile-migrate
  • run the sourcerer plugins in the config file

plugins

currently there are a few core plugins:

  • makeTypesPlugin - generates type aliases
  • makeZodSchemasPlugin - generates zod schemas
  • makeQueriesPlugin - generates CRUD queries

About

generate code from Postgres introspection data

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published