Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

SAP-archive/cloud-activerecord-jdbcsybase-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Important Notice

We have decided to stop the maintenance of this public GitHub repository.

ActiveRecord JDBC adapter for SAP Sybase ASE database

Overview

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

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.

About

ActiveRecord JDBC adapter for SAP Sybase ASE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published