TypeScript interface generator from SQL table schema
npm install -g sql2ts
$ 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
$ sql2ts --path interfaces/ -h localhost -u root -d example_database -t main_table -i 2
sql2ts
is licensed under the MIT license.
Copyright © 2016, Artur Pelczar