Ruby/OpenBase

Get Version

0.8.3

What

Ruby/OpenBase is a ruby extension library to access OpenBase database from Ruby.

Installing

Yes, Ruby/OpenBase is finally a gem! Can installation get any easier than this?

sudo gem install openbase

The basics

Typically using Ruby/OpenBase is connecting to database and executing SQL statement with OpenBase object. If you execute SQL statement with OpenBase#execute(), you can get OpenBaseResult object to access query result table as return value. Next, call fetch() or each() to fetching result rows.

Demonstration of usage

I’m working on the rdoc documentation.

  require 'openbase'

  # connects to database
  ob = OpenBase.new('WOMovies', 'localhost', 'admin', '')

  # executes SQL statement
  result = ob.execute 'select * from MOVIE'

  # shows result rows
  result.each do |row|
    p row
  end

How to submit patches

Dr. Nic Williams wrote a great blog article entitled 8 steps for fixing other people’s code . If you’ve never contributed to an open source project, read that first … then you can email me your patch. For now I haven’t set up any sort of issue tracking system, but I will if it becomes necessary.

The trunk repository is svn://rubyforge.org/var/svn/ruby-openbase/trunk for anonymous access.

License

This code is free to use under the terms of the MIT license.

Contact

Ruby/OpenBase is lovingly maintained by Derrick Spell.
You can send him your comments/feature requests/accolades/patches, but please, no hate mail … he’ll just delete it.

Derrick Spell, 22nd June 2007