db_scaffold
db_scaffold
DB Scaffold is an Amber plugin utility to generate scaffolding from an existing database. The goal is to simplify the the development of Amber applications.
Installation
Add this to your Amber Projects shard.yml
:
targets:
db_scaffold:
main: lib/db_scaffold/src/db_scaffold.cr
dependencies:
db_scaffold:
github: drujensen/db_scaffold
Usage
Make sure the database_url
in the config/environments/development.yml
is pointing to your existing database.
Then run:
shards build
bin/db_scaffold [--all|--type TYPE] (table_names)
If you want to generate only model, use --type
option.
bin/db_scaffold --type model users
Contributing
- Fork it ( https://github.com/drujensen/db_scaffold/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- drujensen Dru Jensen - creator, maintainer
Repository
db_scaffold
Owner
Statistic
- 4
- 1
- 0
- 0
- 1
- almost 7 years ago
- February 3, 2018
License
MIT License
Links
Synced at
Mon, 25 Nov 2024 00:11:12 GMT
Languages