We have decided to stop the maintenance of this public GitHub repository.
This is an ActiveRecord JDBC adapter for the Sybase ASE 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-sybase 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:
- compile and build the Java parts of the gem:
jruby java_compile.rb
jruby -S gem build activerecord-jdbcsybase-adapter.gemspec
jruby -S gem install activerecord-jdbcsybase-adapter
To use the adapter add the following in your database.yml configuration:
development:
adapter: sybase
encoding: utf8
reconnect: false
host: <your_SybaseASE_host>
database: <your_SybaseASE_database>
pool: 5
username: <your_SybaseASE_user_name>
password: <your_SybaseASE_password>
JNDI setting is supported as well (this is coming from the generic AR-JDBC Adapter):
production:
adapter: sybase
encoding: utf8
reconnect: false
jndi: java:comp/env/jdbc/mySybaseASEDataSource
pool: 5
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.
You can check this wiki page for more details of how we created this adapter.