.TH "TCHMGR" 1 "2012-08-18" "Man Page" "Tokyo Cabinet" .SH NAME tchmgr \- the command line utility of the hash database API .SH DESCRIPTION .PP The command `\fBtchmgr\fR' is a utility for test and debugging of the hash 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. `\fIkey\fR' specifies the key of a record. `\fIvalue\fR' specifies the value of a record. `\fIfile\fR' specifies the input file. .PP .RS .br \fBtchmgr 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 .RS Create a database file. .RE .br \fBtchmgr inform \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fIpath\fB\fR .RS Print miscellaneous information to the standard output. .RE .br \fBtchmgr 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 \fIkey\fB \fIvalue\fB\fR .RS Store a record. .RE .br \fBtchmgr out \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sx\fR]\fB \fIpath\fB \fIkey\fB\fR .RS Remove a record. .RE .br \fBtchmgr 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 \fIkey\fB\fR .RS Print the value of a record. .RE .br \fBtchmgr 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 .RS Print keys of all records, separated by line feeds. .RE .br \fBtchmgr 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 \fR[\fB\-df\fR]\fB \fIpath\fB \fR[\fB\fIbnum\fB \fR[\fB\fIapow\fB \fR[\fB\fIfpow\fB\fR]\fB\fR]\fB\fR]\fB\fR .RS Optimize a database file. .RE .br \fBtchmgr importtsv \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sc\fR]\fB \fIpath\fB \fR[\fB\fIfile\fB\fR]\fB\fR .RS Store records of TSV in each line of a file. .RE .br \fBtchmgr version\fR .RS Print the version information of Tokyo Cabinet. .RE .RE .PP Options feature the following. .PP .RS \fB\-tl\fR : enable the option `HDBTLARGE'. .br \fB\-td\fR : enable the option `HDBTDEFLATE'. .br \fB\-tb\fR : enable the option `HDBTBZIP'. .br \fB\-tt\fR : enable the option `HDBTTCBS'. .br \fB\-tx\fR : enable the option `HDBTEXCODEC'. .br \fB\-nl\fR : enable the option `HDBNOLCK'. .br \fB\-nb\fR : enable the option `HDBLCKNB'. .br \fB\-sx\fR : the input data is evaluated as a hexadecimal data string. .br \fB\-dk\fR : use the function `tchdbputkeep' instead of `tchdbput'. .br \fB\-dc\fR : use the function `tchdbputcat' instead of `tchdbput'. .br \fB\-dai\fR : use the function `tchdbaddint' instead of `tchdbput'. .br \fB\-dad\fR : use the function `tchdbadddouble' instead of `tchdbput'. .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\-tz\fR : enable the option `UINT8_MAX'. .br \fB\-df\fR : perform defragmentation only. .br \fB\-sc\fR : normalize keys as lower cases. .br .RE .PP This command returns 0 on success, another on failure. .SH SEE ALSO .PP .BR tchtest (1), .BR tchmttest (1), .BR tchdb (3), .BR tokyocabinet (3)