/norm

Generate TypeScript types from a database schema

Primary LanguageTypeScriptMIT LicenseMIT

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.