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] path
17 Creates a database file.
18 kctreemgr inform [-onl|-otl|-onr] [-st] path
19 Prints status information.
20 kctreemgr set [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd]
21 [-sx] path key value
22 Stores a record.
23 kctreemgr remove [-onl|-otl|-onr] [-sx] path key
24 Removes a record.
25 kctreemgr get [-onl|-otl|-onr] [-sx] [-px] [-pz] path key
26 Prints the value of a record.
27 kctreemgr list [-onl|-otl|-onr] [-des] [-max num] [-sx] [-pv]
28 [-px] path [key]
29 Prints keys of all records, separated by line feeds.
30 kctreemgr clear [-onl|-otl|-onr] path
31 Removes all records of a database.
32 kctreemgr import [-onl|-otl|-onr] [-sx] path [file]
33 Imports records from a TSV file.
34 kctreemgr copy [-onl|-otl|-onr] path file
35 Copies the whole database.
36 kctreemgr dump [-onl|-otl|-onr] path [file]
37 Dumps records into a snapshot file.
38 kctreemgr load [-otr] [-onl|-otl|-onr] path [file]
39 Loads records from a snapshot file.
40 kctreemgr defrag [-onl|-otl|-onr] path
41 Performs defragmentation.
42 kctreemgr check [-onl|-otl|-onr] path
43 Checks consistency.
44
45 Options feature the following.
46
47 -otr : opens the database with the truncation option.
48 -onl : opens the database with the no locking option.
49 -otl : opens the database with the try locking option.
50 -onr : opens the database with the no auto repair option.
51 -apow num : specifies the power of the alignment of record size.
52 -fpow num : specifies the power of the capacity of the free
53 block pool.
54 -ts : tunes the database with the small option.
55 -tl : tunes the database with the linear option.
56 -tc : tunes the database with the compression option.
57 -bnum num : specifies the number of buckets of the hash table.
58 -psiz num : specifies the size of each page.
59 -rcd : use the decimal comparator instead of the lexical one.
60 -st : prints miscellaneous information.
61 -add : performs adding operation.
62 -app : performs appending operation.
63 -rep : performs replacing operation.
64 -inci : performs integer increment operation.
65 -incd : performs real number increment operation.
66 -sx : the input data is evaluated as a hexadecimal data string.
67 -px : the output data is converted into a hexadecimal data
68 string.
69 -pz : does not append line feed at the end of the output.
70 -des : visits records in descending order.
71 -max num : specifies the maximum number of shown records.
72 -pv : prints values of records also.
73
74 This command returns 0 on success, another on failure.
75
76
78 kctreetest(1)
79
80
81
82Man Page 2010-12-09 KCTREEMGR(1)