ARel Sybase ASE visitor
Ruby
Pull request Compare This branch is 26 commits ahead, 765 commits behind rails:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/arel/visitors
.autotest
.gitignore
History.txt
MIT-LICENSE.txt
Manifest.txt
README.markdown
Rakefile
arel-sybase-visitor.gemspec

README.markdown

ARel Sybase ASE visitor

DESCRIPTION

Arel is a Relational Algebra for Ruby. Read more about arel on http://github.com/rails/arel

This repository contains an Arel Visitor for Sybase ASE, that implements .limit() and .offset() using ROWCOUNT and Server-Side Cursors. Because cursors must be declared in their own batch, this visitor requires a patched sybase adapter, available onto a public IFAD GitHub Repository

INSTALLATION

Bundler is required. Gemfile:

gem 'activerecord-sybase-adapter', :git => 'git://github.com/ifad/activerecord-sybase-adapter'
gem 'arel-sybase-visitor',         :git => 'git://github.com/ifad/arel-sybase-visitor'

config/application.rb:

config.after_initialize do
  require 'arel/visitors/sybase'
end

The above is quite dirty, will be fixed soon.

COMPATIBILITY

Sybase ASE >= 15.0 - for SCROLL CURSORS. Use the ase_12_5 branch if you're stuck at the 12.5 version. arel ~> 2.0.7 - earlier releases won't work.