KCPOLYMGR(1)
π kcpolymgr β the manual page, but make it make sense π
ok so bestie, welcome to kcpolymgr, aka the kcpolymgr(1) situation. it's the manual page for the command line interface to manage the polymorphic database. sit down, grab a strawberry drink π, and let's get into it.
π NAME π
kcpolymgr β command line interface to manage the polymorphic database
β¨ DESCRIPTION β¨
so kcpolymgr is a utility for test and debugging of the polymorphic database and its applications. it's giving dev-tools energy, it's giving "i live in the terminal and i'm thriving" π
before we go anywhere, here's the vocab check, because these little placeholders show up everywhere:
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. π
no cap, that's the whole glossary. now the fun part.
π the commands (aka the whole menu, no skips)
create β makes a database file, fresh out of the box β¨
kcpolymgr create [-otr] [-onl|-otl|-onr] path
inform β prints status information, like a vibe check but for your db π©Ί
kcpolymgr inform [-onl|-otl|-onr] [-st] path
set β stores a record. putting something in its place, periodt πΎ
kcpolymgr set [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd] [-sx] path key value
remove β removes a record. bye bestie, it's not personal π«Ά
kcpolymgr remove [-onl|-otl|-onr] [-sx] path key
get β prints the value of a record. the reveal moment π
kcpolymgr get [-onl|-otl|-onr] [-rm] [-sx] [-px] [-pz] path key
list β prints keys of all records, separated by line feeds. the whole roster, one per line π
kcpolymgr list [-onl|-otl|-onr] [-mp|-mr|-ms] [-des] [-max num] [-rm] [-sx] [-pv] [-px] path [key]
clear β removes all records of a database. nuclear option, lowkey π
kcpolymgr clear [-onl|-otl|-onr] path
import β imports records from a TSV file. bring your data over, we have room πΈ
kcpolymgr import [-onl|-otl|-onr] [-sx] path [file]
copy β copies the whole database. everything, in one go, iconic π¦
kcpolymgr copy [-onl|-otl|-onr] path file
dump β dumps records into a snapshot file. saving the moment for later πΈ
kcpolymgr dump [-onl|-otl|-onr] path [file]
load β loads records from a snapshot file. bringing the moment back β¨
kcpolymgr load [-otr] [-onl|-otl|-onr] path [file]
merge β merge records from other databases. the friend group reunion π€
kcpolymgr merge [-onl|-otl|-onr] [-add|-app|-rep] path src...
setbulk β store records at once. efficiency is the aesthetic π₯
kcpolymgr setbulk [-onl|-otl|-onr] path key value ...
removebulk β remove records at once. mass exit, but make it organized π
kcpolymgr removebulk [-onl|-otl|-onr] [-sx] path key ...
getbulk β retrieve records at once. haul, but for data π
kcpolymgr getbulk [-onl|-otl|-onr] [-sx] [-px] path key ...
check β checks consistency. bestie, are you okay? are you okay, bestie? π§
kcpolymgr check [-onl|-otl|-onr] path
π« the options (all of them, obviously)
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. the extra little details π-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. β¬οΈ-max numβ specifies the maximum number of shown records. π§-pvβ prints values of records also. π
π«Ά exit status
this command returns 0 on success, another on failure. so 0 = slay, anything else = go read the output bestie.
π SEE ALSO π
no really, go read those too, they're part of the lore π
and that's the whole page, bestie π this one came out of Kyoto Cabinet, dated 2012-05-24, and it lives in the Man Page section of your manual. mwah, go forth and manage that polymorphic database πβ¨
π¦ where this page comes from
- alpine 3.24: kyotocabinet-doc 1.2.80-r1 Β· GPL-3.0-or-later
- arch rolling: kyotocabinet 1.2.80-2 Β· GPL-3.0-or-later
- debian bookworm: kyotocabinet-utils 1.2.79-2+b1
- debian trixie: kyotocabinet-utils 1.2.80-2+b1
- fedora 43: kyotocabinet 1.2.80-8.fc43 Β· GPL-3.0-only
- fedora 44: kyotocabinet 1.2.80-9.fc44 Β· GPL-3.0-only
- nixos 26.05: kyotocabinet 1.2.80
- nixpkgs unstable: kyotocabinet 1.2.80
- opensuse-leap 16.0: kyotocabinet 1.2.80-160000.2.2 Β· SUSE-GPL-3.0-with-FLOSS-exception
- opensuse-leap 16.0: kyotocabinet 1.2.80-160000.2.2 Β· SUSE-GPL-3.0-with-FLOSS-exception
- opensuse-leap 16.0: kyotocabinet 1.2.80-160000.2.2 Β· SUSE-GPL-3.0-with-FLOSS-exception
- opensuse-leap 16.0: kyotocabinet 1.2.80-160000.2.2 Β· SUSE-GPL-3.0-with-FLOSS-exception
- ubuntu jammy: kyotocabinet-utils 1.2.79-1
- ubuntu noble: kyotocabinet-utils 1.2.80-1build1
- ubuntu questing: kyotocabinet-utils 1.2.80-2
- ubuntu resolute: kyotocabinet-utils 1.2.80-2build1
- ubuntu stonking: kyotocabinet-utils 1.2.80-2build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms