Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sails-auto

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-auto

auto generate models for sails

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

sails-auto

Generates models for your existing database mysql table

Installation

npm i -g sails-auto

Usage

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 / MODEL

Options:

--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 prefer

Dependencies

minimist, mysql

License

MIT

Keywords

FAQs

Package last updated on 28 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc