wtfiscrq / norm

Generate TypeScript types from a database schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

norm

Generate TypeScript types from a database schema.

Installation

Using deno install:

$ deno install --allow-net --allow-write https://deno.land/norm@0.1.0/norm.ts

Usage

$ norm --help
norm 0.1.0
Generate TypeScript types from a database schema.

Examples:
  norm -c mysql://user:password@localhost:3306/public
  norm -c postgres://user:password@localhost:5432/public

Supported databases:
  * MySQL
  * PostgreSQL

OPTIONS:
    -c, --conn       Database connection string
    -h, --help       Show help information
    -o, --out        Types filename (default: ./types.ts)
    -v, --version    Show version

Documentation

Documentation is available here.

License

This module is licensed under the MIT License.

About

Generate TypeScript types from a database schema

License:MIT License


Languages

Language:TypeScript 97.6%Language:Makefile 2.4%