https://github.com/knu/ruby-bdb
Ruby bindings for Sleepycat Berkeley DB and DB XML by Guy Decoux
https://github.com/knu/ruby-bdb
Last synced: about 1 year ago
JSON representation
Ruby bindings for Sleepycat Berkeley DB and DB XML by Guy Decoux
- Host: GitHub
- URL: https://github.com/knu/ruby-bdb
- Owner: knu
- License: other
- Created: 2009-05-13T06:27:51.000Z (about 17 years ago)
- Default Branch: master
- Last Pushed: 2018-05-14T17:09:09.000Z (about 8 years ago)
- Last Synced: 2025-03-25T14:51:16.283Z (about 1 year ago)
- Language: C
- Homepage: http://moulon.inra.fr/ruby/bdb.html
- Size: 762 KB
- Stars: 13
- Watchers: 3
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE.txt
Awesome Lists containing this project
README
bdb1
====
Synopsis
--------
A Ruby interface to Berkeley DB distributed by Oracle
Prerequisite
============
* db >= 2 (some functionnality like join are not available with db < 2.6)
For Berkeley DB 1.85 and 1.86 see bdb1
Examples
--------
See the `examples` directory for code examples.
Installation
------------
You can install this module simply by:
gem install bdb
Use the `--with-db-dir=$prefix` option to specify with which libdb
this extension should be linked.
Notes
=====
With bdb >= 0.5.5 `nil' is stored as an empty string (when marshal is
not used).
Open the database with
"store_nil_as_null" => true
if you want the old behavior (`nil' stored as `\000').
Examples
========
* examples/basic.rb
simple access method
* examples/recno.rb
access to flat file
* examples/cursor.rb
direct cursor access
* examples/txn.rb
transaction
* examples/join.rb
join (need db >= 2.6)
* examples/log.rb
log file
License
-------
Copyright (c) 2000-2008 Guy Decoux
Copyright (c) 2008-2011 Akinori MUSHA
You can redistribute it and/or modify it under the same term as Ruby.