Skip to content
/ sql2ts Public

Generate TypeScript interface from SQL Schema.

License

Notifications You must be signed in to change notification settings

annsk/sql2ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sql2ts

TypeScript interface generator from SQL table schema

nodejs version npm version npm download count MIT license

Table of Contents

Install

npm install -g sql2ts

Usage

$ sql2ts --help

 Usage:
  sql2ts [OPTIONS] [ARGS]

 Options:
  -h, --host [URL]        Host. (Default is localhost)
  -u, --user STRING       Database user.
  -p, --password PASSWORD Database password.
  -d, --database STRING   Database name.
  -t, --table STRING      Table name.
  -i, --intend            Intendation size. Tab or space count.
      --path FILE         Path for output file
  -f, --filename FILE     Output file name
  -v, --version           Display the current version

Example

$ sql2ts --path interfaces/ -h localhost -u root -d example_database -t main_table -i 2

License

sql2ts is licensed under the MIT license.

Copyright © 2016, Artur Pelczar

About

Generate TypeScript interface from SQL Schema.

Resources

License

Stars

Watchers

Forks

Packages

No packages published