Database configuration class for Sequel.
Add this line to your application's Gemfile:
gem 'sequel_db_config'
And then execute:
$ bundle
Or install it yourself as:
$ gem install -l pkg/sequel_db_config-0.0.1.gem
Default configuration file is "dbconfig.yaml".
db_driver: postgres
db_host: localhost
db_name: database_name
db_user: database_user
db_password: password
SequelDbConfig::Config class includes Singleton module. To create instance
dbconfig = SequelDbConfig::Config.instance
- connection_string : get database connection string for Sequel.
- load(file) : load configuration from specified YAML file.
- migrate(path, version) : exec migration on specified path.
- Fork it ( https://github.com/kenkiku1021/sequel_db_config/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