Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spoonx/sails-generate-models
Generate sails models based on your database schema.
https://github.com/spoonx/sails-generate-models
Last synced: about 1 month ago
JSON representation
Generate sails models based on your database schema.
- Host: GitHub
- URL: https://github.com/spoonx/sails-generate-models
- Owner: SpoonX
- License: mit
- Created: 2016-01-20T14:59:39.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T16:33:52.000Z (about 7 years ago)
- Last Synced: 2024-11-13T20:41:39.697Z (about 1 month ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 16
- Watchers: 4
- Forks: 10
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Sails-generate-models
Generate models (and controllers) based on your database schema.## Warning
This was built for a specific task, and has only been tested on MySQL.## Usage
First install globally:
`npm i -g sails-generate-models`
Then in your sails project root you can run:
`sails-generate-models`
### Options
* --path=/path/to/sails-project (defaults to cwd)
* --connection=connectionToUse (defaults to default connection)
* --table=tableToGenerateFor (defaults to all)
* --database=databaseToGenerateFor (defaults to default connection's db)
* --controller (create controller, too? Defaults to controller)