1KCFORESTMGR(1) Kyoto Cabinet KCFORESTMGR(1)
2
3
4
6 kcforestmgr - command line interface to manage the directory tree data‐
7 base
8
9
11 The command `kcforestmgr' is a utility for test and debugging of the
12 file tree database and its applications. `path' specifies the path of
13 a database file. `key' specifies the key of a record. `value' speci‐
14 fies the value of a record. `file' specifies the input/output file.
15
16 kcforestmgr create [-otr] [-onl|-otl|-onr] [-tc] [-bnum num]
17 [-psiz num] [-rcd] path
18 Creates a database file.
19 kcforestmgr inform [-onl|-otl|-onr] [-st] path
20 Prints status information.
21 kcforestmgr set [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd]
22 [-sx] path key value
23 Stores a record.
24 kcforestmgr remove [-onl|-otl|-onr] [-sx] path key
25 Removes a record.
26 kcforestmgr get [-onl|-otl|-onr] [-sx] [-px] [-pz] path key
27 Prints the value of a record.
28 kcforestmgr list [-onl|-otl|-onr] [-des] [-max num] [-sx] [-pv]
29 [-px] path [key]
30 Prints keys of all records, separated by line feeds.
31 kcforestmgr clear [-onl|-otl|-onr] path
32 Removes all records of a database.
33 kcforestmgr import [-onl|-otl|-onr] [-sx] path [file]
34 Imports records from a TSV file.
35 kcforestmgr copy [-onl|-otl|-onr] path file
36 Copies the whole database.
37 kcforestmgr dump [-onl|-otl|-onr] path [file]
38 Dumps records into a snapshot file.
39 kcforestmgr load [-otr] [-onl|-otl|-onr] path [file]
40 Loads records from a snapshot file.
41 kcforestmgr check [-onl|-otl|-onr] path
42 Checks consistency.
43
44 Options feature the following.
45
46 -otr : opens the database with the truncation option.
47 -onl : opens the database with the no locking option.
48 -otl : opens the database with the try locking option.
49 -onr : opens the database with the no auto repair option.
50 -tc : tunes the database with the compression option.
51 -bnum num : specifies the number of buckets of the hash table.
52 -psiz num : specifies the size of each page.
53 -rcd : use the decimal comparator instead of the lexical one.
54 -st : prints miscellaneous information.
55 -add : performs adding operation.
56 -app : performs appending operation.
57 -rep : performs replacing operation.
58 -inci : performs integer increment operation.
59 -incd : performs real number increment operation.
60 -sx : the input data is evaluated as a hexadecimal data string.
61 -px : the output data is converted into a hexadecimal data
62 string.
63 -pz : does not append line feed at the end of the output.
64 -des : visits records in descending order.
65 -max num : specifies the maximum number of shown records.
66 -pv : prints values of records also.
67
68 This command returns 0 on success, another on failure.
69
70
72 kcforesttest(1)
73
74
75
76Man Page 2010-12-09 KCFORESTMGR(1)