kctreemgr(1)
NAME
kctreemgr – command line interface to manage the file tree database
DESCRIPTION
The command `kctreemgr‘ is a utility for test and debugging of the file tree database and its applications. `path‘ specifies the path of a database file. `key‘ specifies the key of a record. `value‘ specifies the value of a record. `file‘ specifies the input/output file.
kctreemgr create[-otr][-onl|-otl|-onr][-apownum][-fpownum][-ts][-tl][-tc][-bnumnum][-psiznum][-rcd|-rcld|-rcdd]path- Creates a database file.
- Prints status information.
- Stores a record.
- Removes a record.
- Prints the value of a record.
- Prints keys of all records, separated by line feeds.
- Removes all records of a database.
- Imports records from a TSV file.
- Copies the whole database.
- Dumps records into a snapshot file.
- Loads records from a snapshot file.
- Performs defragmentation.
- Store records at once.
- Remove records at once.
- Retrieve records at once.
- Checks consistency.
kctreemgr inform [-onl|-otl|-onr][-st]path
kctreemgr set [-onl|-otl|-onr][-add|-app|-rep|-inci|-incd][-sx]pathkeyvalue
kctreemgr remove [-onl|-otl|-onr][-sx]pathkey
kctreemgr get [-onl|-otl|-onr][-rm][-sx][-px][-pz]pathkey
kctreemgr list [-onl|-otl|-onr][-des][-max num][-rm][-sx][-pv][-px]path[key]
kctreemgr clear [-onl|-otl|-onr]path
kctreemgr import [-onl|-otl|-onr][-sx]path[file]
kctreemgr copy [-onl|-otl|-onr]pathfile
kctreemgr dump [-onl|-otl|-onr]path[file]
kctreemgr load [-otr][-onl|-otl|-onr]path[file]
kctreemgr defrag [-onl|-otl|-onr]path
kctreemgr setbulk [-onl|-otl|-onr]pathkeyvalue …
kctreemgr removebulk [-onl|-otl|-onr][-sx]pathkey …
kctreemgr getbulk [-onl|-otl|-onr][-sx][-px]pathkey …
kctreemgr check [-onl|-otl|-onr]path
Options feature the following.
-otr: opens the database with the truncation option.-onl: opens the database with the no locking option.-otl: opens the database with the try locking option.-onr: opens the database with the no auto repair option.-apownum : specifies the power of the alignment of record size.-fpownum : specifies the power of the capacity of the free block pool.-ts: tunes the database with the small option.-tl: tunes the database with the linear option.-tc: tunes the database with the compression option.-bnumnum : specifies the number of buckets of the hash table.-psiznum : specifies the size of each page.-rcd: use the decimal comparator instead of the lexical one.-rcld: use the lexical descending comparator instead of the ascending one.-rcdd: use the decimal descending comparator instead of the lexical one.-st: prints miscellaneous information.-add: performs adding operation.-app: performs appending operation.-rep: performs replacing operation.-inci: performs integer increment operation.-incd: performs real number increment operation.-sx: the input data is evaluated as a hexadecimal data string.-rm: removes the record.-px: the output data is converted into a hexadecimal data string.-pz: does not append line feed at the end of the output.-des: visits records in descending order.-maxnum : specifies the maximum number of shown records.-pv: prints values of records also.
This command returns 0 on success, another on failure.
SEE ALSO
kctreetest(1)