1.0.2 • Published 8 years ago

sql2ts v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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