1 = tdb - Trivial Database bindings for Ruby
3 TDB is much like other DBM implementations, except it allows concurrent
4 writer processes. TDB was initially developed for Samba, but is used by
5 other projects as well. These Ruby bindings allow Ruby apps to read and
6 write to the same databases used by Samba!
10 * Concurrent reader and writer processes may safely operate on the
11 same file. This is great for MRI where multi-core performance
12 is easiest to achieve with processes and not threads.
14 * Fork-safe, you may fork and share the same TDB object in your parent
17 * Releases the GVL for slow disk operations under Ruby 1.9 so
18 other threads can run (but not other TDB operations! see Caveats below)
20 * Includes several {hash functions}[link:Hash_Functions.html]
21 not included by upstream TDB.
25 These caveats will be addressed upstream in
26 {TDB2}[https://marc.info/?i=201008021002.47351.rusty@rustcorp.com.au]
28 * NOT native thread-safe. Don't try accessing TDB objects from
29 multiple threads at the same time. This probably needs to be
30 fixed upstream since our attempts to make it work have failed.
32 However, TDB will allow other Ruby 1.9 threads to run doing non-TDB
35 * Database size is limited to 4G, even on 64-bit systems.
37 * TDB should be created with an appropriate :hash_size for large databases
38 or performance will suffer.
42 The original tdb library from the {main site}[http://tdb.samba.org/] is
43 required. Debian users can just <code>apt-get install tdb-dev</code>.
44 Non-Debian users: building against upstream tdb 1.2.2 and 1.2.7 are
45 known to be broken, so installing tdb from the latest git is
48 The library consists of a C extension so you'll need a C compiler
49 and Ruby development libraries/headers.
51 You may download the tarball from our
52 {download site}[https://yhbt.net/ruby-tdb/files/] and run setup.rb after
55 https://yhbt.net/ruby-tdb/files/
57 You may also install it via RubyGems on RubyGems.org:
61 If you have a tdb installation in a non-standard prefix, you
64 gem install tdb -- --with-tdb-dir=$PFX
66 Or if you have a non-standard prefix that linkers normally do not search:
68 gem install tdb -- --with-tdb-dir=$PFX --with-dldflags=-Wl,-rpath=$PFX/lib
70 You can get the latest source via git from the following locations
71 (these versions may not be stable):
73 git://yhbt.net/ruby-tdb.git
74 git://repo.or.cz/ruby-tdb.git (mirror)
76 You may browse the code from the web and download the latest snapshot
79 * https://yhbt.net/ruby-tdb.git
80 * http://repo.or.cz/w/ruby-tdb.git (gitweb)
82 See the HACKING guide on how to contribute and build prerelease gems
87 All feedback (bug reports, user/development dicussion, patches, pull
88 requests) go to the mailing list:
90 ruby-tdb-public@yhbt.net
92 No subscription is required to post, and HTML will be considered spam
93 and rejected. Subscription is optional, you may subscribe by sending
96 ruby-tdb-public+subscribe@yhbt.net
98 And following instructions in the confirmation email.
99 Similarly, you may unsubscribe by sending an email to:
101 ruby-tdb-public+unsubscribe@yhbt.net
103 Mailing list archives are available at:
105 https://yhbt.net/ruby-tdb-public/
107 For the latest on tdb releases, you may check our NEWS page (and
108 subscribe to our Atom feed).