1TCHMGR(1)                        Tokyo Cabinet                       TCHMGR(1)
2
3
4

NAME

6       tchmgr - the command line utility of the hash database API
7
8

DESCRIPTION

10       The  command  `tchmgr'  is a utility for test and debugging of the hash
11       database API and its applications.  `path'  specifies  the  path  of  a
12       database  file.  `bnum' specifies the number of buckets.  `apow' speci‐
13       fies the power of the alignment.  `fpow' specifies  the  power  of  the
14       free  block pool.  `key' specifies the key of a record.  `value' speci‐
15       fies the value of a record.  `file' specifies the input file.
16
17              tchmgr create [-tl] [-td|-tb|-tt|-tx] path [bnum [apow [fpow]]]
18                     Create a database file.
19              tchmgr inform [-nl|-nb] path
20                     Print miscellaneous information to the standard output.
21              tchmgr put [-nl|-nb] [-sx] [-dk|-dc|-dai|-dad] path key value
22                     Store a record.
23              tchmgr out [-nl|-nb] [-sx] path key
24                     Remove a record.
25              tchmgr get [-nl|-nb] [-sx] [-px] [-pz] path key
26                     Print the value of a record.
27              tchmgr list [-nl|-nb] [-m num] [-pv] [-px] [-fm str] path
28                     Print keys of all records, separated by line feeds.
29              tchmgr optimize [-tl] [-td|-tb|-tt|-tx]  [-tz]  [-nl|-nb]  [-df]
30              path [bnum [apow [fpow]]]
31                     Optimize a database file.
32              tchmgr importtsv [-nl|-nb] [-sc] path [file]
33                     Store records of TSV in each line of a file.
34              tchmgr version
35                     Print the version information of Tokyo Cabinet.
36
37       Options feature the following.
38
39              -tl : enable the option `HDBTLARGE'.
40              -td : enable the option `HDBTDEFLATE'.
41              -tb : enable the option `HDBTBZIP'.
42              -tt : enable the option `HDBTTCBS'.
43              -tx : enable the option `HDBTEXCODEC'.
44              -nl : enable the option `HDBNOLCK'.
45              -nb : enable the option `HDBLCKNB'.
46              -sx : the input data is evaluated as a hexadecimal data string.
47              -dk : use the function `tchdbputkeep' instead of `tchdbput'.
48              -dc : use the function `tchdbputcat' instead of `tchdbput'.
49              -dai : use the function `tchdbaddint' instead of `tchdbput'.
50              -dad : use the function `tchdbadddouble' instead of `tchdbput'.
51              -px  :  the  output  data  is  converted into a hexadecimal data
52              string.
53              -pz : do not append line feed at the end of the output.
54              -m num : specify the maximum number of the output.
55              -pv : print values of records also.
56              -fm str : specify the prefix of keys.
57              -tz : enable the option `UINT8_MAX'.
58              -df : perform defragmentation only.
59              -sc : normalize keys as lower cases.
60
61       This command returns 0 on success, another on failure.
62
63

SEE ALSO

65       tchtest(1), tchmttest(1), tchdb(3), tokyocabinet(3)
66
67
68
69Man Page                          2009-09-04                         TCHMGR(1)
Impressum