sql2ts
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i sql2ts

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • annsk