Coder Social home page Coder Social logo

recursing / kanel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kristiandupont/kanel

0.0 0.0 0.0 6.01 MB

Generate Typescript types from Postgres

Home Page: https://kristiandupont.github.io/kanel/

License: MIT License

JavaScript 3.34% TypeScript 95.91% CSS 0.75%

kanel's Introduction

Kanel Logo Kanel Logo

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.

Usage

Install with:

$ npm i -D kanel

To run, make sure you are in a folder that has a .kanelrc.js configuration file and that your database is running, and type:

$ npx kanel

Programmatical usage

Example of running generation from code:

import { processDatabase } from "kanel";
import config from "./kanelrc";

async function run() {
  await processDatabase(config);
}

run();

Example

To see an example of the result, check out the /example folder. It uses the Sample Database from www.postgresqltutorial.com.



Contributors

Made with contrib.rocks.

kanel's People

Contributors

0xradical avatar christiaanwesterbeek avatar dangnhdev avatar dependabot[bot] avatar domdomegg avatar domiins avatar e253 avatar ericnr avatar gitrojones avatar hexcowboy avatar janpaepke avatar jcristovao avatar kfirba avatar kristiandupont avatar louneskmt avatar luixo avatar m12y avatar meticoeus avatar mjwwit avatar mpblewitt avatar npdev453 avatar pbernasconi avatar pmoghaddam avatar real-marshal avatar renovate[bot] avatar seveibar avatar smolijar avatar taiwing avatar thelinuxlich avatar vktrl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.