Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 76 lines (44 sloc) 1.114 kb
dbfa77b4 »
2011-12-26 Gemify.
1 bdb1
2 ====
3
4 Synopsis
5 --------
6
7 A Ruby interface to Berkeley DB distributed by Oracle
8
9 Prerequisite
10 ============
11
12 * db >= 2 (some functionnality like join are not available with db < 2.6)
13
14 For Berkeley DB 1.85 and 1.86 see bdb1
15
16 Examples
17 --------
18
19 See the `examples` directory for code examples.
20
21 Installation
22 ------------
23
24 You can install this module simply by:
25
26 gem install bdb
27
28 Use the `--with-db-dir=$prefix` option to specify with which libdb
29 this extension should be linked.
30
31 Notes
32 =====
33
34 With bdb >= 0.5.5 `nil' is stored as an empty string (when marshal is
35 not used).
36
37 Open the database with
38
39 "store_nil_as_null" => true
40
41 if you want the old behavior (`nil' stored as `\000').
42
43 Examples
44 ========
45
46 * examples/basic.rb
47
48 simple access method
49
50 * examples/recno.rb
51
52 access to flat file
53
54 * examples/cursor.rb
55
56 direct cursor access
57
58 * examples/txn.rb
59
60 transaction
61
62 * examples/join.rb
63
64 join (need db >= 2.6)
65
66 * examples/log.rb
67
68 log file
69
70 License
71 -------
72
73 Copyright (c) 2000-2008 Guy Decoux
74 Copyright (c) 2008-2011 Akinori MUSHA
75
76 You can redistribute it and/or modify it under the same term as Ruby.
Something went wrong with that request. Please try again.