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

NAME

6       tctmgr - the command line utility of the table database API
7
8

DESCRIPTION

10       The  command  `tctmgr' is a utility for test and debugging of the table
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.  `pkey' specifies the primary key of a record.  `cols'
15       specifies the names and the values of  a  record  alternately.   `name'
16       specifies  the  name  of a column.  `op' specifies an operator.  `expr'
17       specifies the condition expression.  `file' specifies the input file.
18
19              tctmgr create [-tl] [-td|-tb|-tt|-tx] path [bnum [apow [fpow]]]
20                     Create a database file.
21              tctmgr inform [-nl|-nb] path
22                     Print miscellaneous information to the standard output.
23              tctmgr put [-nl|-nb] [-sx] [-dk|-dc|-dai|-dad] path  pkey  [cols
24              ...]
25                     Store a record.
26              tctmgr out [-nl|-nb] [-sx] path pkey
27                     Remove a record.
28              tctmgr get [-nl|-nb] [-sx] [-px] [-pz] path pkey
29                     Print the value of a record.
30              tctmgr list [-nl|-nb] [-m num] [-pv] [-px] [-fm str] path
31                     Print  the primary keys of all records, separated by line
32                     feeds.
33              tctmgr search [-nl|-nb] [-ord name  type]  [-m  num]  [-sk  num]
34              [-kw] [-pv] [-px] [-ph] [-bt num] [-rm] [-ms type] path [name op
35              expr ...]
36                     Print records  matching  conditions,  separated  by  line
37                     feeds.
38              tctmgr  optimize  [-tl]  [-td|-tb|-tt|-tx] [-tz] [-nl|-nb] [-df]
39              path [bnum [apow [fpow]]]
40                     Optimize a database file.
41              tctmgr setindex [-nl|-nb] [-it type] path name
42                     Set the index of a column.
43              tctmgr importtsv [-nl|-nb] [-sc] path [file]
44                     Store records of TSV in each line of a file.
45              tctmgr version
46                     Print the version information of Tokyo Cabinet.
47
48       Options feature the following.
49
50              -tl : enable the option `TDBTLARGE'.
51              -td : enable the option `TDBTDEFLATE'.
52              -tb : enable the option `TDBTBZIP'.
53              -tt : enable the option `TDBTTCBS'.
54              -tx : enable the option `TDBTEXCODEC'.
55              -nl : enable the option `TDBNOLCK'.
56              -nb : enable the option `TDBLCKNB'.
57              -sx : the input data is evaluated as a hexadecimal data string.
58              -dk : use the function `tctdbputkeep' instead of `tctdbput'.
59              -dc : use the function `tctdbputcat' instead of `tctdbput'.
60              -dai : use the function `tctdbaddint' instead of `tctdbput'.
61              -dad : use the function `tctdbadddouble' instead of `tctdbput'.
62              -px : the output data  is  converted  into  a  hexadecimal  data
63              string.
64              -pz : do not append line feed at the end of the output.
65              -m num : specify the maximum number of the output.
66              -pv : print values of records also.
67              -fm str : specify the prefix of keys.
68              -ord name type : specify the order of the result.
69              -sk num : specify the number of skipped records.
70              -kw : print KWIC string.
71              -ph : print hint information also.
72              -bt : specify the number of benchmark tests.
73              -rm : remove every record in the result.
74              -ms type : specify the set operation of meta search.
75              -tz : enable the option `UINT8_MAX'.
76              -df : perform defragmentation only.
77              -it  type  :  specify the index type among "lexical", "decimal",
78              "token", "qgram", and "void".
79              -cd : create the number index instead of the string index.
80              -cv : remove the existing index.
81              -sc : normalize keys as lower cases.
82
83       The operator of the `search' subcommand is one  of  "STREQ",  "STRINC",
84       "STRBW",  "STREW",  "STRAND",  "STROR",  "STROREQ",  "STRRX",  "NUMEQ",
85       "NUMGT",  "NUMGE",  "NUMLT",  "NUMLE",  "NUMBT",  "NUMOREQ",   "FTSPH",
86       "FTSAND",  "FTSOR",  and  "FTSEX".   If "~" preposes each operator, the
87       logical meaning is reversed.  If "+" preposes each operator,  no  index
88       is  used  for  the  operator.   The type of the `-ord' option is one of
89       "STRASC", "STRDESC", "NUMASC", and "NUMDESC".  The type  of  the  `-ms'
90       option  is one of "UNION", "ISECT", and "DIFF".  This command returns 0
91       on success, another on failure.
92
93

SEE ALSO

95       tcttest(1), tctmttest(1), tctdb(3), tokyocabinet(3)
96
97
98
99Man Page                          2009-09-04                         TCTMGR(1)
Impressum