Ruby/NuoDB Interface <img src=“api.travis-ci.org/nuodb/ruby-nuodb.png?branch=master” alt=“Build Status” /> <img src=“gemnasium.com/nuodb/ruby-nuodb.png?travis” alt=“Dependency Status” /> <img src=“
” />
This is the official Ruby Gem for NuoDB. It wraps the NuoDB C++ API, providing a natural API for Ruby.
To use NuoDB with Rails you will also want the ActiveRecord NuoDB Adapter
Note: At this time the Ruby/NuoDB Interface does not support Windows.
Getting Started
-
If you haven’t already, Download and Install NuoDB
-
Install the gem
gem install nuodb -
Use NuoDB in Ruby
require "nuodb" conn = NuoDB::Connection.new(:database => 'test@localhost', :username => 'dba', :password => 'goalie', :schema => 'hockey') stmt = conn.statement stmt.execute("SELECT * FROM hockey") stmt.results.each do |res| puts res.inspect end
More Information
Contributing
See Contribution for information about contributing to the Ruby ActiveRecord NuoDB Adapter.