db_scaffold

Generate Amber scaffolding from database schema

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

  1. Fork it ( https://github.com/drujensen/db_scaffold/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

db_scaffold

Owner
Statistic
  • 4
  • 1
  • 0
  • 0
  • 1
  • over 6 years ago
  • February 3, 2018
License

MIT License

Links
Synced at

Thu, 07 Nov 2024 13:43:55 GMT

Languages