RAA - odba

odba / 1.0.2

Short description: Open Database Access - an object Cache library
Category: Library/Database
Status: beta
Created: 2005-12-20 09:14:25 GMT
Last update: 2006-02-07 11:19:02 GMT
Owner: Hannes Wyss (Projects of this owner)
Homepage: http://odba.ywesee.com
Download: http://download.ywesee.com/odba/odba-1.0.2.tar.bz2
License: LGPL
Dependency:
Requires: ruby-dbi/0.0.23(*)
(*): newer version exists
Description:

New Features in 1.0.2

ODBA is an unintrusive Object Cache system. It adresses the crosscutting concern of object storage by disconnecting and serializing objects into storage. All disconnected connections are replaced by instances of ODBA::Stub, thus enabling transparent object-loading.

ODBA supports:

  • transparent loading of connected objects
  • index-vectors
  • transactions
  • transparently fetches Hash-Elements without loading the entire Hash

Example

  include 'odba'

  # connect default storage manager to a relational database
  ODBA.storage.dbi = ODBA::ConnectionPool.new('DBI::pg::database', 'user', 'pw')

  class Counter
    include ODBA::Persistable
    def initialize
      @pos = 0
    end
    def up
      @pos += 1
      self.odba_store
      @pos
    end
    def down
      @pos -= 1
      self.odba_store
      @pos
    end
  end
Versions: [1.0.2 (2006-02-07)] [1.0 (2005-12-20)]

Edit this project (for project owner)

back to RAA top