1c-icap-mklmdb(8) System Manager's Manual c-icap-mklmdb(8)
2
3
4
6 c-icap-mklmdb - simple utility to create LMDB lookup tables
7
9 c-icap-mklmdb [ -V ] [ -VV ] [ -d debug_level ] [ -i file.txt ] [ -p
10 db_directory ] [ -n db_name ] [ -t string|int|ip ] [ -v string|int|ip ]
11 [ --dump ] [ --erase ] [ --info ]
12
14 c-icap-mklmdb utility can be used to create LMDB based lookup tables
15 for use with the c-icap server.
16
18 -V Print version
19
20 -VV Print build informations
21
22 -d debug_level
23 The debug level
24
25 -i file.txt
26 The file contains the data (required). The line format of this
27 file must be:
28 key: value1, value2, ....
29
30 -p db_directory
31 The database directory path
32
33 -n db_name
34 A database name to use. Multiple LMDB databases can coexists in
35 the same LMDB files
36
37 -t string|int|ip
38 The type of the key. Select string for string keys, int for in‐
39 teger keys or ip for using IP addresses as keys. The "string" is
40 the default.
41
42 -v string|int|ip
43 The type of the values. The "string" is the default.
44
45 --dump Do not update the database just dump it to the screen.
46
47 --erase
48 Erase from database the keys listed in the file given with the
49 '-i' parameter
50
51 --info Print database informations
52
54 c-icap-mklmdb -p /path/to/database -i keys.txt
55 It builds the an LMDB database under the path 'path/to/data‐
56 base', using string type for keys and values.
57
58 c-icap-mklmdb -p /path/to/database --dump
59 Dump the contents of the given database
60
62 c-icap(8) c-icap-client(8) c-icap-stretch(8) c-icap-config(8) c-icap-
63 libicapapi-config(8)
64
66 Tsantilas Christos
67
68
69
70 c_icap 0.6.0 c-icap-mklmdb(8)