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

NAME

6       tcbmgr - the command line utility of the B+ tree database API
7
8

DESCRIPTION

10       The command `tcbmgr' is a utility for test and debugging of the B+ tree
11       database API and its applications.  `path'  specifies  the  path  of  a
12       database  file.   `lmemb'  specifies the number of members in each leaf
13       page.  `nmemb' specifies the number of members in each  non-leaf  page.
14       `bnum'  specifies the number of buckets.  `apow' specifies the power of
15       the alignment.  `fpow' specifies the power  of  the  free  block  pool.
16       `key'  specifies the key of a record.  `value' specifies the value of a
17       record.  `file' specifies the input file.
18
19              tcbmgr create [-cd|-ci|-cj] [-tl] [-td|-tb|-tt|-tx] path  [lmemb
20              [nmemb [bnum [apow [fpow]]]]]
21                     Create a database file.
22              tcbmgr inform [-nl|-nb] path
23                     Print miscellaneous information to the standard output.
24              tcbmgr       put       [-cd|-ci|-cj]       [-nl|-nb]       [-sx]
25              [-dk|-dc|-dd|-db|-dai|-dad] path key value
26                     Store a record.
27              tcbmgr out [-cd|-ci|-cj] [-nl|-nb] [-sx] path key
28                     Remove a record.
29              tcbmgr get [-cd|-ci|-cj] [-nl|-nb] [-sx] [-px] [-pz] path key
30                     Print the value of a record.
31              tcbmgr list [-cd|-ci|-cj] [-nl|-nb] [-m num] [-bk]  [-pv]  [-px]
32              [-j str] [-rb bkey ekey] [-fm str] path
33                     Print keys of all records, separated by line feeds.
34              tcbmgr  optimize  [-cd|-ci|-cj]  [-tl]  [-td|-tb|-tt|-tx]  [-tz]
35              [-nl|-nb] [-df] path [lmemb [nmemb [bnum [apow [fpow]]]]]
36                     Optimize a database file.
37              tcbmgr importtsv [-nl|-nb] [-sc] path [file]
38                     Store records of TSV in each line of a file.
39              tcbmgr version
40                     Print the version information of Tokyo Cabinet.
41
42       Options feature the following.
43
44              -cd : use the comparison function `tccmpdecimal'.
45              -ci : use the comparison function  `tccmpint32'.
46              -cj : use the comparison function  `tccmpint64'.
47              -tl : enable the option `BDBTLARGE'.
48              -td : enable the option `BDBTDEFLATE'.
49              -tb : enable the option `BDBTBZIP'.
50              -tt : enable the option `BDBTTCBS'.
51              -tx : enable the option `BDBTEXCODEC'.
52              -nl : enable the option `BDBNOLCK'.
53              -nb : enable the option `BDBLCKNB'.
54              -sx : the input data is evaluated as a hexadecimal data string.
55              -dk : use the function `tcbdbputkeep' instead of `tcbdbput'.
56              -dc : use the function `tcbdbputcat' instead of `tcbdbput'.
57              -dd : use the function `tcbdbputdup' instead of `tcbdbput'.
58              -db : use the function `tcbdbputdupback' instead of `tcbdbput'.
59              -dai : use the function `tcbdbaddint' instead of `tcbdbput'.
60              -dad : use the function `tcbdbadddouble' instead of `tcbdbput'.
61              -px : the output data  is  converted  into  a  hexadecimal  data
62              string.
63              -pz : do not append line feed at the end of the output.
64              -m num : specify the maximum number of the output.
65              -bk : perform backword scanning.
66              -pv : print values of records also.
67              -j str : specify the key where the cursor jump to.
68              -rb bkey ekey : specify the range of keys.
69              -fm str : specify the prefix of keys.
70              -tz : enable the option `UINT8_MAX'.
71              -df : perform defragmentation only.
72              -sc : normalize keys as lower cases.
73
74       This command returns 0 on success, another on failure.
75
76

SEE ALSO

78       tcbtest(1), tcbmttest(1), tcbdb(3), tokyocabinet(3)
79
80
81
82Man Page                          2012-08-18                         TCBMGR(1)
Impressum