Project

contineo

0.0
No commit activity in last 3 years
No release in over 3 years
Connect rails app to multiple databases with ease, includes sqlite, mysql, oracle etc
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

< 5, >= 3.0
< 2, >= 1.0
<= 4.0.0, >= 3.0
~> 10.1
~> 2.14
~> 1.3
 Project Readme

contineo

Build Status Gem Version

Hold together all your databases in a rails application with ease!

Supports

Rails 3+ and Rails 4.0.0

Installation

Add this line to your Rails application's Gemfile:

gem 'contineo'

And then run:

$ bundle install

Supported Databases

We have tested this with sqlite3 (to make sure it works in development mode), MySQL and Oracle. Feel free to fork and add the database you have integrated with Contineo in this list!

Usage

Convention here is, simply you create configuration sections in database.yml, as:

<db_name_you_call_it>_<environment>

and you will get a connection class to this database as:

DbNameYouCallIt

Sample database.yml:

development:
  adapter: sqlite3
  database: db/development.sqlite3
  pool: 5
  timeout: 5000

# Look at the convention <db_name>_<environment>
other_development:
  adapter: oracle_enhanced
  encoding: utf8
  database: other_whatever_server:port/other_whatever_name_of_db
  username: fake_username
  password: encrypted_password

# Look at the convention <db_name>_<environment>
another_development:
  adapter: mysql2
  database: another_db
  username: another_fake_username
  password: another_encrypted_password
  host:  host_name
  pool: 5
  timeout: 5000

Now Access db with ease

# Create your model as:
class Teacher < Other
end

class Doctor < Another
end

That's it!

Contributing

  1. Fork it
  2. Create your feature branch - git checkout -b my-new-feature
  3. Commit your changes - git commit -m 'Add some feature'
  4. Push to the branch - git push origin my-new-feature
  5. Create new Pull Request