⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tctmgr.1

📁 Tokyo Cabinet的Tokyo Cabinet 是一个DBM的实现。这里的数据库由一系列key-value对的记录构成。key和value都可以是任意长度的字节序列,既可以是二进制也可以是字符
💻 1
字号:
.TH "TCTMGR" 1 "2009-02-13" "Man Page" "Tokyo Cabinet".SH NAMEtctmgr \- the command line utility of the table database API.SH DESCRIPTION.PPThe command `\fBtctmgr\fR' is a utility for test and debugging of the table database API and its applications.  `\fIpath\fR' specifies the path of a database file.  `\fIbnum\fR' specifies the number of buckets.  `\fIapow\fR' specifies the power of the alignment.  `\fIfpow\fR' specifies the power of the free block pool.  `\fIpkey\fR' specifies the primary key of a record.  `\fIcols\fR' specifies the names and the values of a record alternately.  `\fIname\fR' specifies the name of a column.  `\fIop\fR' specifies an operator.  `\fIexpr\fR' specifies the condition expression.  `\fIfile\fR' specifies the input file..PP.RS.br\fBtctmgr create \fR[\fB\-tl\fR]\fB \fR[\fB\-td\fR|\fB\-tb\fR|\fB\-tt\fR|\fB\-tx\fR]\fB \fIpath\fB \fR[\fB\fIbnum\fB \fR[\fB\fIapow\fB \fR[\fB\fIfpow\fB\fR]\fB\fR]\fB\fR]\fB\fR.RSCreate a database file..RE.br\fBtctmgr inform \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fIpath\fB\fR.RSPrint miscellaneous information to the standard output..RE.br\fBtctmgr put \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sx\fR]\fB \fR[\fB\-dk\fR|\fB\-dc\fR|\fB\-dai\fR|\fB\-dad\fR]\fB \fIpath\fB \fIpkey\fB \fR[\fB\fIcols\fB ...\fR]\fB\fR.RSStore a record..RE.br\fBtctmgr out \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sx\fR]\fB \fIpath\fB \fIpkey\fB\fR.RSRemove a record..RE.br\fBtctmgr get \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sx\fR]\fB \fR[\fB\-px\fR]\fB \fR[\fB\-pz\fR]\fB \fIpath\fB \fIpkey\fB\fR.RSPrint the value of a record..RE.br\fBtctmgr list \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-m \fInum\fB\fR]\fB \fR[\fB\-pv\fR]\fB \fR[\fB\-px\fR]\fB \fR[\fB\-fm \fIstr\fB\fR]\fB \fIpath\fB\fR.RSPrint the primary keys of all records, separated by line feeds..RE.br\fBtctmgr search \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-ord \fIname\fB \fItype\fB\fR]\fB \fR[\fB\-m \fInum\fB\fR]\fB \fR[\fB\-sk \fInum\fB\fR]\fB \fR[\fB\-pv\fR]\fB \fR[\fB\-px\fR]\fB \fR[\fB\-ph\fR]\fB \fR[\fB\-bt \fInum\fB\fR]\fB \fR[\fB\-rm\fR]\fB \fIpath\fB \fR[\fB\fIname\fB \fIop\fB \fIexpr\fB ...\fR]\fB\fR.RSPrint records matching conditions, separated by line feeds..RE.br\fBtctmgr optimize \fR[\fB\-tl\fR]\fB \fR[\fB\-td\fR|\fB\-tb\fR|\fB\-tt\fR|\fB\-tx\fR]\fB \fR[\fB\-tz\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fIpath\fB \fR[\fB\fIbnum\fB \fR[\fB\fIapow\fB \fR[\fB\fIfpow\fB\fR]\fB\fR]\fB\fR]\fB\fR.RSOptimize a database file..RE.br\fBtctmgr setindex \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-it \fItype\fB\fR]\fB \fIpath\fB \fIname\fB\fR.RSSet the index of a column..RE.br\fBtctmgr importtsv \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sc\fR]\fB \fIpath\fB \fR[\fB\fIfile\fB\fR]\fB\fR.RSStore records of TSV in each line of a file..RE.br\fBtctmgr version\fR.RSPrint the version information of Tokyo Cabinet..RE.RE.PPOptions feature the following..PP.RS\fB\-tl\fR : enable the option `TDBTLARGE'..br\fB\-td\fR : enable the option `TDBTDEFLATE'..br\fB\-tb\fR : enable the option `TDBTBZIP'..br\fB\-tt\fR : enable the option `TDBTTCBS'..br\fB\-tx\fR : enable the option `TDBTEXCODEC'..br\fB\-nl\fR : enable the option `TDBNOLCK'..br\fB\-nb\fR : enable the option `TDBLCKNB'..br\fB\-sx\fR : the input data is evaluated as a hexadecimal data string..br\fB\-dk\fR : use the function `tctdbputkeep' instead of `tctdbput'..br\fB\-dc\fR : use the function `tctdbputcat' instead of `tctdbput'..br\fB\-dai\fR : use the function `tctdbaddint' instead of `tctdbput'..br\fB\-dad\fR : use the function `tctdbadddouble' instead of `tctdbput'..br\fB\-px\fR : the output data is converted into a hexadecimal data string..br\fB\-pz\fR : do not append line feed at the end of the output..br\fB\-m \fInum\fR\fR : specify the maximum number of the output..br\fB\-pv\fR : print values of records also..br\fB\-fm \fIstr\fR\fR : specify the prefix of keys..br\fB\-ord \fIname\fR \fItype\fR\fR : specify the order of the result..br\fB\-sk \fInum\fR\fR : specify the number of skipped records..br\fB\-ph\fR : print hint information also..br\fB\-bt\fR : specify the number of benchmark tests..br\fB\-rm\fR : remove every record in the result..br\fB\-tz\fR : enable the option `UINT8_MAX'..br\fB\-it \fItype\fR\fR : specify the index type among "lexical", "decimal", and "void"..br\fB\-cd\fR : create the number index instead of the string index..br\fB\-cv\fR : remove the existing index..br\fB\-sc\fR : normalize keys as lower cases..br.RE.PPThe operator of the `search' subcommand is one of "STREQ", "STRINC", "STRBW", "STREW", "STRAND", "STROR", "STROREQ", "STRRX", "NUMEQ", "NUMGT", "NUMGE", "NUMLT", "NUMLE", "NUMBT", and "NUMOREQ".  If "~" preposes each operator, the logical meaning is reversed.  If "+" preposes each operator, no index is used for the operator.  The type of the `\-ord' option is one of "STRASC", "STRDESC", "NUMASC", and "NUMDESC".  This command returns 0 on success, another on failure..SH SEE ALSO.PP.BR tcttest (1),.BR tctmttest (1),.BR tctdb (3),.BR tokyocabinet (3)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -