<commit_before>contineo
========

connect multiple databases to your rails application with ease!

=== sample database.yml:

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

    other_development:
      adapter: sqlite3
      database: db/other.sqlite3
      pool: 5
      timeout: 5000

=== Access with ease

Create your model as:

    class Part < Other
      contineo
    end

<commit_msg>Updated installation instructions and usage guide<commit_after>contineo
========

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

## Supports

    Rails 2.3+

## Installation

Add this line to your Rails application's `Gemfile`:

    gem 'contineo'

And then run:

    $ bundle install

## 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: sqlite3
      database: db/other_whatever_name_of_db.sqlite3
      pool: 5
      timeout: 5000
     
    # Look at the convention <db_name>_<environment>
    another_development:
      adapter: sqlite3
      database: db/another_db.sqlite3
      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
{'fraction_non_alphanumeric': 0.07253333333333334, 'fraction_numerical': 0.0224, 'mean_word_length': 2.707509881422925, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1581536', 'n_tokens_mistral': 606, 'n_tokens_neox': 542, 'n_words': 198}