TCHMGR(1)
๐ TCHMGR(1) ๐
okay bestie, welcome to tchmgr โ the command line utility of the hash database API, straight out of Tokyo Cabinet. it's giving tiny but powerful, fr fr. let's get into it โจ
๐ธ NAME ๐ธ
tchmgr โ the command line utility of the hash database API ๐ซถ
โจ DESCRIPTION โจ
so like, the command tchmgr is a utility for test and debugging of the hash database API and its applications. no cap, that's literally its whole job.
here's the cast of placeholders you're gonna see everywhere, so memorize these iykyk:
pathโ the path of a database file ๐bnumโ the number of buckets ๐ชฃapowโ the power of the alignment ๐fpowโ the power of the free block pool ๐keyโ the key of a record ๐valueโ the value of a record ๐fileโ the input file ๐
and here's the whole menu of subcommands, each one a lil icon in its own right:
tchmgr create [-tl] [-td|-tb|-tt|-tx] path [bnum [apow [fpow]]]
Create a database file.
tchmgr inform [-nl|-nb] path
Print miscellaneous information to the standard output.
tchmgr put [-nl|-nb] [-sx] [-dk|-dc|-dai|-dad] path key value
Store a record.
tchmgr out [-nl|-nb] [-sx] path key
Remove a record.
tchmgr get [-nl|-nb] [-sx] [-px] [-pz] path key
Print the value of a record.
tchmgr list [-nl|-nb] [-m num] [-pv] [-px] [-fm str] path
Print keys of all records, separated by line feeds.
tchmgr optimize [-tl] [-td|-tb|-tt|-tx] [-tz] [-nl|-nb] [-df]
path [bnum [apow [fpow]]]
Optimize a database file.
tchmgr importtsv [-nl|-nb] [-sc] path [file]
Store records of TSV in each line of a file.
tchmgr version
Print the version information of Tokyo Cabinet.
the options feature the following, and yes i'm listing every single one because we don't skip ๐
-tlโ enable the optionHDBTLARGE. ๐-tdโ enable the optionHDBTDEFLATE.-tbโ enable the optionHDBTBZIP.-ttโ enable the optionHDBTTCBS.-txโ enable the optionHDBTEXCODEC.-nlโ enable the optionHDBNOLCK.-nbโ enable the optionHDBLCKNB.-sxโ the input data is evaluated as a hexadecimal data string. ๐ข-dkโ use the functiontchdbputkeepinstead oftchdbput.-dcโ use the functiontchdbputcatinstead oftchdbput.-daiโ use the functiontchdbaddintinstead oftchdbput.-dadโ use the functiontchdbadddoubleinstead oftchdbput.-pxโ the output data is converted into a hexadecimal data string. ๐-pzโ do not append line feed at the end of the output.-m numโ specify the maximum number of the output. ๐งฎ-pvโ print values of records also.-fm strโ specify the prefix of keys.-tzโ enable the optionUINT8_MAX. ๐-dfโ perform defragmentation only.-scโ normalize keys as lower cases. ๐ก
and the vibe check on exit status: this command returns 0 on success, and another on failure. periodt. ๐
๐ฆ SEE ALSO ๐ฆ
tchtest(1), tchmttest(1), tchdb(3), tokyocabinet(3) โ go read your siblings bestie, they're all iconic too ๐
and that's the whole page!! Man Page, 2012-08-18, TCHMGR(1) โ mwah, love u, go slay some hash databases ๐โจ๐ธ๐ซถ
๐ฆ where this page comes from
- centos-stream 10: tokyocabinet 1.4.48-30.el10 ยท LGPL-2.1-or-later
- centos-stream 9: tokyocabinet 1.4.48-19.el9 ยท LGPLv2+
- centos-stream 9: tokyocabinet 1.4.48-19.el9 ยท LGPLv2+
- debian bookworm: tokyocabinet-bin 1.4.48-15 ยท LGPL-2.1-or-later
- debian trixie: tokyocabinet-bin 1.4.48-15.1+b1 ยท LGPL-2.1-or-later
- fedora 43: tokyocabinet 1.4.48-28.fc43 ยท LGPL-2.1-or-later
- fedora 43: tokyocabinet 1.4.48-28.fc43 ยท LGPL-2.1-or-later
- fedora 44: tokyocabinet 1.4.48-30.fc44 ยท LGPL-2.1-or-later
- fedora 44: tokyocabinet 1.4.48-30.fc44 ยท LGPL-2.1-or-later
- nixos 26.05: tokyocabinet 1.4.48
- nixpkgs unstable: tokyocabinet 1.4.48
- ubuntu jammy: tokyocabinet-bin 1.4.48-14build1 ยท LGPL-2.1-or-later
- ubuntu noble: tokyocabinet-bin 1.4.48-15.1build1 ยท LGPL-2.1-or-later
- ubuntu questing: tokyocabinet-bin 1.4.48-15.1build2
- ubuntu resolute: tokyocabinet-bin 1.4.48-15.1build3 ยท LGPL-2.1-or-later
- ubuntu stonking: tokyocabinet-bin 1.4.48-15.1build3 ยท LGPL-2.1-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms