1.0.1 • Published 10 years ago
sails-auto v1.0.1
sails-auto
Generates models for your existing database mysql table
Installation
npm i -g sails-autoUsage
Basic usage:
sails-auto --host=<HOST> --user=<USER> --password=<PASSWORD> --db=<DATABASE> --model=<MODEL>Required Parameters:
--host || -h         DB HOST
--user || -u         DB USER
--password || -p     DB PASSWORD
--db || -d           DATABASE
--model || -m        DB TABLE / MODELOptions:
--connection || -c   SAILS connection to use
--tableName || -t    alternative Table name
--createdAt          if provided, will create an alternative name for the createdAt column
--updatedAt          if provided, will create an alternative name for the updatedAt column
--out || -o          if provided, will create the file specified here. Provide full path!
--ext || -e          defaults To '.js', may be changed to whatever extension you preferDependencies
License
MIT