Skip to content

Automatically generate typescript interfaces from database schema.

Notifications You must be signed in to change notification settings

andoshin11/db-recon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DB-Recon

Automatically generate typescript interfaces and db client from database schema.

⚠️ Restriction ⚠️

DB-Recon currently supports only MySQL. Other forms of database support will be available later.

Install

$ npm install db-recon
$ yarn add db-recon

How to use

$ db-recon generate --host localhost --database sample_db --port 3306 --user andoshin11 --password VeryStr0ngPassword --output models

CLI Options

Usage: db-recon [options] [command]

Generate schema type definitions from your database lighting fast!

Options:
  -V, --version       output the version number
  -h, --help          output usage information

Commands:
  generate [options]

  Options:
    -h, --host <host>          IP/Hostname for the database
    -d, --database <database>  Database name
    -u, --user <user>          Username for database
    -p, --password <password>  Password for database
    -P, --port <port>          Port number for database
    -o, --output <output>      Output directory
    -h, --help                 output usage information

About

Automatically generate typescript interfaces from database schema.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published