The command `kcpolymgr' is a utility for test and debugging of the polymorphic 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. `src' specifies other
database files.
kcpolymgrcreate [-otr] [-onl|-otl|-onr] path
Creates a database file.
kcpolymgrinform [-onl|-otl|-onr] [-st] path
Prints status information.
kcpolymgrset [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd] [-sx] pathkeyvalue
Stores a record.
kcpolymgrremove [-onl|-otl|-onr] [-sx] pathkey
Removes a record.
kcpolymgrget [-onl|-otl|-onr] [-rm] [-sx] [-px] [-pz] pathkey
Prints the value of a record.
kcpolymgrlist [-onl|-otl|-onr] [-mp|-mr|-ms] [-des] [-maxnum] [-rm] [-sx] [-pv] [-px] path [key]
Prints keys of all records, separated by line feeds.
kcpolymgrclear [-onl|-otl|-onr] path
Removes all records of a database.
kcpolymgrimport [-onl|-otl|-onr] [-sx] path [file]
Imports records from a TSV file.
kcpolymgrcopy [-onl|-otl|-onr] pathfile
Copies the whole database.
kcpolymgrdump [-onl|-otl|-onr] path [file]
Dumps records into a snapshot file.
kcpolymgrload [-otr] [-onl|-otl|-onr] path [file]
Loads records from a snapshot file.
kcpolymgrmerge [-onl|-otl|-onr] [-add|-app|-rep] pathsrc...
Merge records from other databases.
kcpolymgrsetbulk [-onl|-otl|-onr] pathkeyvalue...
Store records at once.
kcpolymgrremovebulk [-onl|-otl|-onr] [-sx] pathkey...
Remove records at once.
kcpolymgrgetbulk [-onl|-otl|-onr] [-sx] [-px] pathkey...
Retrieve records at once.
kcpolymgrcheck [-onl|-otl|-onr] path
Checks consistency.
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.
-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 : performs not append line feed at the end of the output.
-mp : performs prefix matching instead of usual scan.
-mr : performs regular expression matching instead of usual scan.
-ms : performs similar matching instead of usual scan.
-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.