Flowdock
Ruby on Rails latest stable (v4.1.8) - 0 notes - Superclass: ActiveRecord::ConnectionAdapters::AbstractAdapter
  • 1.0.0 (0)
  • 1.1.1
  • 1.1.6
  • 1.2.0
  • 1.2.6
  • 2.0.0
  • 2.0.3
  • 2.1.0
  • 2.2.1
  • 2.3.2
  • 2.3.8
  • 3.0.0
  • 3.0.5
  • 3.0.9
  • 3.1.0
  • 3.2.1
  • 3.2.3
  • 3.2.8
  • 3.2.13
  • 4.0.2
  • 4.1.8
  • What's this?

Class deprecated or moved

This class is deprecated or moved on the latest stable version. The last existing version (v1.0.0) is shown here.

This is an Oracle/OCI adapter for the ActiveRecord persistence framework. It relies upon the OCI8 driver, which works with Oracle 8i and above. Most recent development has been on Debian Linux against a 10g database, ActiveRecord 1.12.1 and OCI8 0.1.13. See: http://rubyforge.org/projects/ruby-oci8/

Usage notes:

  • Key generation assumes a "${table_name}_seq" sequence is available for all tables; the sequence name can be changed using ActiveRecord::Base.set_sequence_name. When using Migrations, these sequences are created automatically.
  • Oracle uses DATE or TIMESTAMP datatypes for both dates and times. Consequently some hacks are employed to map data back to Date or Time in Ruby. If the column_name ends in _time it's created as a Ruby Time. Else if the hours/minutes/seconds are 0, I make it a Ruby Date. Else it's a Ruby Time. This is a bit nasty - but if you use Duck Typing you'll probably not care very much. In 9i and up it's tempting to map DATE to Date and TIMESTAMP to Time, but too many databases use DATE for both. Timezones and sub-second precision on timestamps are not supported.
  • Default values that are functions (such as "SYSDATE") are not supported. This is a restriction of the way ActiveRecord supports default values.

Options:

  • :username — Defaults to root
  • :password — Defaults to nothing
  • :host — Defaults to localhost

Aliases

  • execute
  • execute
Show files where this class is defined (1 file)
Register or log in to add new notes.