public
Description: DataObjects
Homepage: http://rubyforge.org/projects/dorb
Clone URL: git://github.com/datamapper/do.git
do /
name age message
file .gitignore Sun Oct 25 07:09:42 -0700 2009 [data_objects] Enable YARD docs * Fix a couple... [myabc]
file MAVEN.markdown Wed Nov 04 10:29:43 -0800 2009 * dried up pom.xml - build tag was redundant *... [mkristian]
file README.markdown Sat Oct 17 14:48:49 -0700 2009 Unmark SQL Server as pending in README drivers ... [myabc]
file Rakefile Sat Oct 31 12:20:45 -0700 2009 Detect IronRuby implementation * Allow initial... [Alex Coles]
file TODO.markdown Thu Aug 06 23:52:14 -0700 2009 Separate out plugin section [dbussink]
directory data_objects/ Fri Dec 04 23:30:48 -0800 2009 [all] Updated require statements in Rakefile to... [dkubb]
directory do_derby/ Fri Dec 04 23:30:48 -0800 2009 [all] Updated require statements in Rakefile to... [dkubb]
directory do_h2/ Fri Dec 04 23:30:48 -0800 2009 [all] Updated require statements in Rakefile to... [dkubb]
directory do_hsqldb/ Fri Dec 04 23:30:48 -0800 2009 [all] Updated require statements in Rakefile to... [dkubb]
directory do_jdbc-tools/ Wed Nov 04 20:05:25 -0800 2009 * fixed the rails plugin version * reformated ... [mkristian]
directory do_jdbc/ Fri Dec 04 23:30:48 -0800 2009 [all] Updated require statements in Rakefile to... [dkubb]
directory do_mysql/ Fri Dec 04 23:30:48 -0800 2009 [all] Updated require statements in Rakefile to... [dkubb]
directory do_oracle/ Fri Dec 04 23:30:48 -0800 2009 [all] Updated require statements in Rakefile to... [dkubb]
directory do_postgres/ Sun Dec 06 10:12:52 -0800 2009 [do_postgres][do_sqlite3] Added proper typecast... [pietia]
directory do_sqlite3/ Sun Dec 06 10:12:52 -0800 2009 [do_postgres][do_sqlite3] Added proper typecast... [pietia]
directory do_sqlserver/ Fri Dec 04 23:30:48 -0800 2009 [all] Updated require statements in Rakefile to... [dkubb]
directory jdbc_drivers/ Sat Dec 05 11:29:53 -0800 2009 [jdbc_drivers] Convert SQL Server JDBC Driver t... [myabc]
file pom.xml Thu Nov 12 15:21:17 -0800 2009 [do_jdbc] Updated Maven's configuration files ... [pietia]
directory tasks/ Sat Dec 05 11:31:07 -0800 2009 Remove remains of Hoe Signed-off-by: Alex Cole... [myabc]
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

There is experimental support for Rubinius.

At present, PostgreSQL, MySQL and SQLite drivers are available. 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.