table-to-interface
v1.0.7
Published
Generate the interface of the database tables for typescript projects.(Currently only mysql is supported)
Downloads
3
Readme
table-to-interface
Generate the interface of the database tables for typescript projects.(Currently only mysql is supported)
usage
install
(sudo) npm i table-to-interface -g
options
-v ,--version output the version number
-h, --host [string] IP adress/Hostname for database server (default: "127.0.0.1")
-p, --port [number] Port number for database server (default: 3306)
-d, --database <string> Database name
-u, --user [string] Username for database server (default: "root")
-x, --pass [string] Password for database server (default: "")
-o, --output [string] Where to place generated models (default: "/users/current_user/output")
-c, --case-file [string] Convert file names to specified case.
[choices: "ipascal", "pascal","param","camel","none"] (default: "none")
-O, --open Whether to open the target path
ipascal like
IHelloWorld
ig -h 127.0.0.1 -u root -x passw0rd -d database
Enjoy your time!!!