Ruby API Support

There are three separate packages available in the SAP Sybase IQ Ruby project. The simplest way to install any of these packages is to use RubyGems.

The home for the SAP Sybase IQ Ruby project is http://sqlanywhere.rubyforge.org/.

Native Ruby Driver

sqlanywhere – This package is a low-level driver that allows Ruby code to interface with SAP Sybase IQ databases. This package provides a Ruby wrapping over the interface exposed by the SAP Sybase IQ C API. This package is written in C and is available as source, or as pre-compiled gems, for Windows and Linux. If you have RubyGems installed, this package can be obtained by running the following command:
gem install sqlanywhere

This package is a prerequisite for any of the other SQL Anywhere Ruby packages.

Rails

Rails is a web development framework written in the Ruby language. Its strength is in web application development. A familiarity with the Ruby programming language is highly recommended before you attempt Rails development. See http://www.rubyonrails.org/.

ActiveRecord Adapter

activerecord-sqlanywhere-adapter – This package is an adapter that allows ActiveRecord to communicate with SAP Sybase IQ. ActiveRecord is an object-relational mapper, popularized by being part of the Ruby on Rails web development framework. This package is written in pure Ruby, and available in source, or gem format. This adapter uses (and has a dependency on) the sqlanywhere gem. If you have RubyGems installed, this package and its dependencies can be installed by running the following command:
gem install activerecord-sqlanywhere-adapter

SQL Anywhere Ruby/DBI Driver

dbi – This package is a DBI driver for Ruby. If you have RubyGems installed, this package and its dependencies can be installed by running the following command:
gem install dbi
dbd-sqlanywhere – This package is a driver that allows Ruby/DBI to communicate with SAP Sybase IQ. Ruby/DBI is a generic database interface modeled after the popular Perl DBI module. This package is written in pure Ruby, and available in source, or gem format. This driver uses (and has a dependency on) the sqlanywhere gem. If you have RubyGems installed, this package and its dependencies can be installed by running the following command:
gem install dbd-sqlanywhere

For feedback on any of these packages, use the mailing list sqlanywhere-users@rubyforge.com.