tREADME - cdb - Constant database manipulation utility
(HTM) git clone git://git.z3bra.org/cdb.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
tREADME (836B)
---
1 cdb
2 ===
3 Utility to create and manipulate constant databases.
4
5 Constant databases acts as an on-disk key/value map providing very fast
6 and reliable lookups.
7
8 More informations on [djb's website][0].
9
10 Features
11 -----
12 - Create a new cdb from encoded records
13 - Dump existing cdb as encoded records
14 - Query a key to retrieve its value(s)
15 - Skip and/or print multiple records
16
17 Usage
18 -----
19 Refer to cdb(1) manual page for details and examples. The below commands
20 are provided as a quick introduction.
21
22 Create and query a constant database
23
24 cat <<EOF | cdb -m file.cdb
25 +3,5:one->Hello
26 +3,7:two->Goodbye
27 EOF
28
29 cdb -k one file.cdb
30 Hello
31
32 For more infomations about the input format, see cdb(5).
33
34 Installation
35 -----
36 Edit config.mk as needed, then build/install with the following commands:
37
38 make
39 make install
40
41 [0]: http://cr.yp.to/cdb.html