1KCTREEMGR(1) Kyoto Cabinet KCTREEMGR(1)
2
3
4
6 kctreemgr - command line interface to manage the file tree database
7
8
10 The command `kctreemgr' is a utility for test and debugging of the file
11 tree database and its applications. `path' specifies the path of a
12 database file. `key' specifies the key of a record. `value' specifies
13 the value of a record. `file' specifies the input/output file.
14
15 kctreemgr create [-otr] [-onl|-otl|-onr] [-apow num] [-fpow num]
16 [-ts] [-tl] [-tc] [-bnum num] [-psiz num] [-rcd|-rcld|-rcdd]
17 path
18 Creates a database file.
19 kctreemgr inform [-onl|-otl|-onr] [-st] path
20 Prints status information.
21 kctreemgr set [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd]
22 [-sx] path key value
23 Stores a record.
24 kctreemgr remove [-onl|-otl|-onr] [-sx] path key
25 Removes a record.
26 kctreemgr get [-onl|-otl|-onr] [-rm] [-sx] [-px] [-pz] path key
27 Prints the value of a record.
28 kctreemgr list [-onl|-otl|-onr] [-des] [-max num] [-rm] [-sx]
29 [-pv] [-px] path [key]
30 Prints keys of all records, separated by line feeds.
31 kctreemgr clear [-onl|-otl|-onr] path
32 Removes all records of a database.
33 kctreemgr import [-onl|-otl|-onr] [-sx] path [file]
34 Imports records from a TSV file.
35 kctreemgr copy [-onl|-otl|-onr] path file
36 Copies the whole database.
37 kctreemgr dump [-onl|-otl|-onr] path [file]
38 Dumps records into a snapshot file.
39 kctreemgr load [-otr] [-onl|-otl|-onr] path [file]
40 Loads records from a snapshot file.
41 kctreemgr defrag [-onl|-otl|-onr] path
42 Performs defragmentation.
43 kctreemgr setbulk [-onl|-otl|-onr] path key value ...
44 Store records at once.
45 kctreemgr removebulk [-onl|-otl|-onr] [-sx] path key ...
46 Remove records at once.
47 kctreemgr getbulk [-onl|-otl|-onr] [-sx] [-px] path key ...
48 Retrieve records at once.
49 kctreemgr check [-onl|-otl|-onr] path
50 Checks consistency.
51
52 Options feature the following.
53
54 -otr : opens the database with the truncation option.
55 -onl : opens the database with the no locking option.
56 -otl : opens the database with the try locking option.
57 -onr : opens the database with the no auto repair option.
58 -apow num : specifies the power of the alignment of record size.
59 -fpow num : specifies the power of the capacity of the free
60 block pool.
61 -ts : tunes the database with the small option.
62 -tl : tunes the database with the linear option.
63 -tc : tunes the database with the compression option.
64 -bnum num : specifies the number of buckets of the hash table.
65 -psiz num : specifies the size of each page.
66 -rcd : use the decimal comparator instead of the lexical one.
67 -rcld : use the lexical descending comparator instead of the
68 ascending one.
69 -rcdd : use the decimal descending comparator instead of the
70 lexical one.
71 -st : prints miscellaneous information.
72 -add : performs adding operation.
73 -app : performs appending operation.
74 -rep : performs replacing operation.
75 -inci : performs integer increment operation.
76 -incd : performs real number increment operation.
77 -sx : the input data is evaluated as a hexadecimal data string.
78 -rm : removes the record.
79 -px : the output data is converted into a hexadecimal data
80 string.
81 -pz : does not append line feed at the end of the output.
82 -des : visits records in descending order.
83 -max num : specifies the maximum number of shown records.
84 -pv : prints values of records also.
85
86 This command returns 0 on success, another on failure.
87
88
90 kctreetest(1)
91
92
93
94Man Page 2012-05-24 KCTREEMGR(1)