.TH "KTTIMEDMGR" 1 "2012-05-25" "Man Page" "Kyoto Tycoon" .SH NAME kttimedmgr \- command line interface to manage the timed database .SH DESCRIPTION .PP The command `\fBkttimedmgr\fR' is a utility for test and debugging of the timed database and its applications. `\fIpath\fR' specifies the path of a database file. `\fIkey\fR' specifies the key of a record. `\fIvalue\fR' specifies the value of a record. `\fIfile\fR' specifies the input/output file. `\fIdir\fR' specifies the input/output directory. `\fIsrc\fR' specifies other database files. .PP .RS .br \fBkttimedmgr create \fR[\fB\-otr\fR]\fB \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fIpath\fB\fR .RS Creates a database file. .RE .br \fBkttimedmgr inform \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fR[\fB\-st\fR]\fB \fIpath\fB\fR .RS Prints status information. .RE .br \fBkttimedmgr set \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fR[\fB\-add\fR|\fB\-app\fR|\fB\-rep\fR|\fB\-inci\fR|\fB\-incd\fR]\fB \fR[\fB\-sx\fR]\fB \fR[\fB\-xt \fInum\fB\fR]\fB \fIpath\fB \fIkey\fB \fIvalue\fB\fR .RS Stores a record. .RE .br \fBkttimedmgr remove \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fR[\fB\-sx\fR]\fB \fIpath\fB \fIkey\fB\fR .RS Removes a record. .RE .br \fBkttimedmgr get \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fR[\fB\-rm\fR]\fB \fR[\fB\-sx\fR]\fB \fR[\fB\-px\fR]\fB \fR[\fB\-pt\fR]\fB \fR[\fB\-pz\fR]\fB \fIpath\fB \fIkey\fB\fR .RS Prints the value of a record. .RE .br \fBkttimedmgr list \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fR[\fB\-des\fR]\fB \fR[\fB\-max \fInum\fB\fR]\fB \fR[\fB\-rm\fR]\fB \fR[\fB\-sx\fR]\fB \fR[\fB\-pv\fR]\fB \fR[\fB\-px\fR]\fB \fR[\fB\-pt\fR]\fB \fIpath\fB \fR[\fB\fIkey\fB\fR]\fB\fR .RS Prints keys of all records, separated by line feeds. .RE .br \fBkttimedmgr clear \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fIpath\fB\fR .RS Removes all records of a database. .RE .br \fBkttimedmgr import \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fR[\fB\-sx\fR]\fB \fR[\fB\-xt \fInum\fB\fR]\fB \fIpath\fB \fR[\fB\fIfile\fB\fR]\fB\fR .RS Imports records from a TSV file. .RE .br \fBkttimedmgr copy \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fIpath\fB \fIfile\fB\fR .RS Copies the whole database. .RE .br \fBkttimedmgr dump \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fIpath\fB \fR[\fB\fIfile\fB\fR]\fB\fR .RS Dumps records into a snapshot file. .RE .br \fBkttimedmgr load \fR[\fB\-otr\fR]\fB \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fIpath\fB \fR[\fB\fIfile\fB\fR]\fB\fR .RS Loads records from a snapshot file. .RE .br \fBkttimedmgr vacuum \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fIpath\fB\fR .RS Eliminates regions of expired records. .RE .br \fBkttimedmgr recover \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fR[\fB\-ts \fInum\fB\fR]\fB \fIpath\fB \fIdir\fB\fR .RS Recover the database with update log data. .RE .br \fBkttimedmgr merge \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fR[\fB\-add\fR|\fB\-app\fR|\fB\-rep\fR]\fB \fIpath\fB \fIsrc\fB...\fR .RS Merge records from other databases. .RE .br \fBkttimedmgr check \fR[\fB\-onl\fR|\fB\-otl\fR|\fB\-onr\fR]\fB \fR[\fB\-ulog \fIstr\fB\fR]\fB \fR[\fB\-ulim \fInum\fB\fR]\fB \fR[\fB\-sid \fInum\fB\fR]\fB \fR[\fB\-dbid \fInum\fB\fR]\fB \fIpath\fB\fR .RS Checks consistency. .RE .br \fBkttimedmgr bgsinform \fIfile\fB\fR .RS Prints status information of background snapshot files. .RE .RE .PP Options feature the following. .PP .RS \fB\-otr\fR : opens the database with the truncation option. .br \fB\-onl\fR : opens the database with the no locking option. .br \fB\-otl\fR : opens the database with the try locking option. .br \fB\-onr\fR : opens the database with the no auto repair option. .br \fB\-ulog \fIstr\fR\fR : specifies the update log directory. .br \fB\-ulim \fInum\fR\fR : specifies the limit size of each update log file. .br \fB\-sid \fInum\fR\fR : specifies the server ID number. .br \fB\-dbid \fInum\fR\fR : specifies the database ID number. .br \fB\-st\fR : prints miscellaneous information. .br \fB\-add\fR : performs adding operation. .br \fB\-app\fR : performs appending operation. .br \fB\-rep\fR : performs replacing operation. .br \fB\-inci\fR : performs integer increment operation. .br \fB\-incd\fR : performs real number increment operation. .br \fB\-sx\fR : the input data is evaluated as a hexadecimal data string. .br \fB\-xt \fInum\fR\fR : specifies the expiration time. .br \fB\-rm\fR : removes the record. .br \fB\-px\fR : the output data is converted into a hexadecimal data string. .br \fB\-pt\fR : prints the expiration time also. .br \fB\-pz\fR : does not append line feed at the end of the output. .br \fB\-des\fR : visits records in descending order. .br \fB\-max \fInum\fR\fR : specifies the maximum number of shown records. .br \fB\-pv\fR : prints values of records also. .br \fB\-ts \fInum\fR\fR : specifies the maximum time stamp of already read logs. "now" means the current time stamp. .br .RE .PP This command returns 0 on success, another on failure. .SH SEE ALSO .PP .BR kttimedtest (1)