activerecord-maxdb-adapter
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
activerecord-maxdb-adapter
LICENSE
NOTICE
README.md

README.md

ActiveRecord JDBC adapter for SAP MaxDB database

Overview

This is an ActiveRecord JDBC adapter for the SAP MaxDB database. It is intended to be used in JRuby environment only and it is an extension of the ActiveRecord JDBC Adapter project.

This gem requires the jdbc-maxdb gem.

The adapter works for Rails 3. It uses Arel so it probably won't work with Rails 2.

To install the gem you would have to build it from source:

  • jruby -S gem build activerecord-maxdb-adapter.gemspec
  • jruby -S gem install activerecord-maxdb-adapter

To use the adapter add the following in your database.yml configuration:

development:
  adapter: maxdb
  encoding: utf8
  reconnect: false
  host: <your_MaxDB_host>
  database: <your_MaxDB_database>
  pool: 5
  username: <your_MaxDB_user_name>
  password: <your_MaxDB_password>

JNDI setting is supported as well (this is coming from the generic AR-JDBC Adapter):

production:
  adapter: maxdb
  encoding: utf8
  reconnect: false
  jndi: java:comp/env/jdbc/myMaxDBDataSource
  pool: 5

Contributing

This is an open source project under the Apache 2.0 license, and every contribution is welcome. Issues, pull-requests and other discussions are welcome and expected to take place here.

Wiki page

You can check this wiki page for more details of how we created this adapter.