Generate Typescript types from Postgres
See the code

Generate Typescript types from a live Postgres database.
This is for people who don't like ORM's but who do like intellisense and type checking for their database access code.
See the documentation here
Introduction to the idea is outlined here.
Install with:
$ npm i -D kanel
To run, make sure you are in a folder that has a kanel.config.js configuration file and that your database is running, and type:
$ npx kanel
Example of running generation from code:
import { processDatabase } from "kanel";
import config from "./kanel.config.js";
async function run() {
await processDatabase(config);
}
run();
To see examples of the result, check out the /examples folder. It uses the Sample Database from www.postgresqltutorial.com.
Made with contrib.rocks.
Overall
Maintained
Code review
npm
Latest release
Releases this year
496 followers · starred Oct 2024
552 followers · starred Dec 2024
358 followers · starred Sep 2022
118 followers · starred Aug 2024
Generate Typescript types from Postgres
See the code

Generate Typescript types from a live Postgres database.
This is for people who don't like ORM's but who do like intellisense and type checking for their database access code.
See the documentation here
Introduction to the idea is outlined here.
Install with:
$ npm i -D kanel
To run, make sure you are in a folder that has a kanel.config.js configuration file and that your database is running, and type:
$ npx kanel
Example of running generation from code:
import { processDatabase } from "kanel";
import config from "./kanel.config.js";
async function run() {
await processDatabase(config);
}
run();
To see examples of the result, check out the /examples folder. It uses the Sample Database from www.postgresqltutorial.com.
Made with contrib.rocks.
Overall
Maintained
Code review
npm
Latest release
Releases this year
496 followers · starred Oct 2024
552 followers · starred Dec 2024
358 followers · starred Sep 2022
118 followers · starred Aug 2024