Generate TypeScript types from a database schema.
Using deno install
:
$ deno install --allow-net --allow-write https://deno.land/[email protected]/norm.ts
$ 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 is available here.
This module is licensed under the MIT License.