Skip to content
/ norm Public

Generate TypeScript types from a database schema

License

Notifications You must be signed in to change notification settings

wtfiscrq/norm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

norm

Generate TypeScript types from a database schema.

Installation

Using deno install:

$ deno install --allow-net --allow-write https://deno.land/[email protected]/norm.ts

Usage

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

Examples:
  norm -c mysql:https://user:password@localhost:3306/public
  norm -c postgres:https://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.