DataObjects
Ruby Java C
Latest commit 16564e6 May 24, 2016 @tpitale tpitale Merge pull request #99 from datamapper/postgres-bignum-insert-id
Postgres bignum insert
Permalink
Failed to load latest commit information.
data_objects
do_derby Update version and add changelogs Jan 24, 2016
do_h2 Update version and add changelogs Jan 24, 2016
do_hsqldb Update version and add changelogs Jan 24, 2016
do_jdbc-tools Update version and add changelogs Jan 24, 2016
do_jdbc Update version and add changelogs Jan 24, 2016
do_mysql Update version and add changelogs Jan 24, 2016
do_openedge Update version and add changelogs Jan 24, 2016
do_oracle Update version and add changelogs Jan 24, 2016
do_postgres Convert string to integer in ruby-land to handle the returning id bei… May 24, 2016
do_sqlite3 Update version and add changelogs Jan 24, 2016
do_sqlserver Update version and add changelogs Jan 24, 2016
jdbc_drivers Fixed do_postgres README indentation and added syntax highlighting May 1, 2013
.gitignore Update .gitignore for Eclipse project files Apr 1, 2011
.travis.yml Require 1.9.3 to work on CI if it still works May 24, 2016
Gemfile Use Rubygems over HTTPS Feb 13, 2014
MAVEN.markdown * dried up pom.xml - build tag was redundant Nov 4, 2009
README.markdown Clean up OpenEdge README and add it to main list of drivers Aug 9, 2012
Rakefile Add description for version bump task Jan 21, 2013
TODO.markdown minor grammatical correction Sep 16, 2010
pom.xml Update version and add changelogs Jan 24, 2016

README.markdown

DataObjects README

DataObjects.rb is an attempt to rewrite existing Ruby database drivers to conform to one, standard interface.

At present the following drivers are available:

Database Vendor MRI (1.8.6/7) / 1.9 JRuby
MySQL x x
Oracle x x
PostgreSQL x x
SQLite3 x x
Derby - x
H2 - x
HSQLDB - x
SQL Server pending x
OpenEdge - x

There is experimental support for Rubinius.

More drivers are currently under development. If you feel like living on the edge, install and test drivers directly from this repository.

Introduction

To connect to and query the database, DataObjects relies on native extensions. Native extensions have been written in both C (for Ruby 1.8.6/7 (MRI), Ruby 1.9.x (YARV) and Rubinius platform) and Java (for the JRuby platform). Individual drivers may include extensions for both Ruby MRI and JRuby, or one or the other.

C extensions have been written using according to each vendor API. Java drivers use the standard JDBC API. Although there are dialectical differences between the Java drivers, the JDBC API ensures a reasonable amount of commonality. As such, the Java extensions rely on a common do_jdbc gem, which wraps code that is common to all of the Java extensions.

Installation

To install a driver from the repository cd into the driver directory and use the provided rake install task to install for the default platform.

Copyright and Licensing

Please see the copyright notices in each individual driver README.markdown or LICENSE file. Java-based drivers bundle JDBC driver JAR files, which may be provided under a license that is more restrictive than the MIT License used by the data_objects gem itself.