Lines 1-2
Link Here
|
1 |
This is a Ruby extension to GDBM library, which is actually a part of |
1 |
Ruby extension for GNU dbm (gdbm) -- a simple database engine for |
2 |
the Ruby distribution. |
2 |
storing key-value pairs on disk. |
|
|
3 |
|
4 |
GNU dbm is a library for simple databases. A database is a file that |
5 |
stores key-value pairs. Gdbm allows the user to store, retrieve, and |
6 |
delete data by key. It furthermore allows a non-sorted traversal of |
7 |
all key-value pairs. A gdbm database thus provides the same |
8 |
functionality as a hash. As with objects of the Hash class, elements |
9 |
can be accessed with []. Furthermore, GDBM mixes in the Enumerable |
10 |
module, thus providing convenient methods such as #find, #collect, |
11 |
#map, etc. |
12 |
|
13 |
A process is allowed to open several different databases at the same |
14 |
time. A process can open a database as a "reader" or a |
15 |
"writer". Whereas a reader has only read-access to the database, a |
16 |
writer has read- and write-access. A database can be accessed either |
17 |
by any number of readers or by exactly one writer at the same time. |
18 |
|
19 |
WWW: https://rubygems.org/gems/gdbm |