pg-funk
v0.1.2
Published
typed function generator for pg functions
Readme
Intro
pg-funk saves you the labor of writing TypeScript functions and types for your Postgres functions and procedures. pg-funk tool introspects your database to generate what's needed for prouctive development.
Usage
git clonethis repo.- Run
npm install - Run
yarn build - Set
PG_USER,PG_DB,PG_HOST, &PG_PASS - Run
yarn test
Feel free to change the SQL queries in ./src/scripts as you see fit.
Support
- Works with Postgres 12.
- Not yet supported: Functions with unnamed parameters, functions with variadic parameters, window/aggregate functions, and aggregate functions
