Sedna XML database client library for Ruby

This library for Ruby provides an interface to Sedna, an open-source, native XML database that provides a full range of core database services — persistent storage, ACID transactions, security, indices, hot backup. The client is a Ruby extension that uses the C driver that is shipped as part of the Sedna distribution. It is intended to be simple and easy to use.

Installing

You can easily install the client library as a Rubygem. The library ships with the official Sedna driver, which will automatically be built for your platform.
% gem install sedna

Usage

A simple example best illustrates how you could use the Sedna client library.
require 'rubygems' require 'sedna' Sedna.connect :database => "test" do |sedna| sedna.transaction do sedna.load_document "<msg>Hello world!</msg>", "hello" sedna.execute "doc('hello')/msg/text()" #=> ["Hello world!"] end end

Documentation

See the online API documentation for detailed information about the usage of the Sedna client library. Alternatively, use rdoc or ri locally after installation.

Source

Get version 0.6.0 as Rubygem or view all released versions. Use git to clone the source repository or browse it online.
% git clone git://github.com/voormedia/sedna-ruby.git
Author: Rolf Timmermans (r.timmermans at voormedia.com)
Copyright 2008-2010 Voormedia B.V.
Licensed under the Apache License, Version 2.0.