KCHASHMGR(1)

πŸŽ€ KCHASHMGR(1) πŸŽ€

okay so bestie, welcome to kchashmgr, section 1 of the Kyoto Cabinet manual ✨ she's the command line interface to manage the file hash database, and honestly? she's giving utility-chic πŸ’…


✨ NAME ✨

kchashmgr β€” command line interface to manage the file hash database. periodt. 🫢


πŸ’– DESCRIPTION πŸ’–

The command kchashmgr is a utility for test and debugging of the file hash database and its applications, no cap. Let's get the vocabulary straight first, because she uses these words 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.

🌈 the subcommands, iykyk 🌈

  • kchashmgr create [-otr] [-onl|-otl|-onr] [-apow num] [-fpow num] [-ts] [-tl] [-tc] [-bnum num] path β€” Creates a database file. ✨ brand new baby database, born today ✨
  • kchashmgr inform [-onl|-otl|-onr] [-st] path β€” Prints status information.
  • kchashmgr set [-onl|-otl|-onr] [-add|-app|-rep|-inci|-incd] [-sx] path key value β€” Stores a record.
  • kchashmgr remove [-onl|-otl|-onr] [-sx] path key β€” Removes a record.
  • kchashmgr get [-onl|-otl|-onr] [-rm] [-sx] [-px] [-pz] path key β€” Prints the value of a record.
  • kchashmgr list [-onl|-otl|-onr] [-max num] [-rm] [-sx] [-pv] [-px] path [key] β€” Prints keys of all records, separated by line feeds.
  • kchashmgr clear [-onl|-otl|-onr] path β€” Removes all records of a database.
  • kchashmgr import [-onl|-otl|-onr] [-sx] path [file] β€” Imports records from a TSV file.
  • kchashmgr copy [-onl|-otl|-onr] path file β€” Copies the whole database.
  • kchashmgr dump [-onl|-otl|-onr] path [file] β€” Dumps records into a snapshot file.
  • kchashmgr load [-otr] [-onl|-otl|-onr] path [file] β€” Loads records from a snapshot file.
  • kchashmgr defrag [-onl|-otl|-onr] path β€” Performs defragmentation. she's doing a little cleanup, self-care era πŸ§–
  • kchashmgr setbulk [-onl|-otl|-onr] path key value ... β€” Store records at once.
  • kchashmgr removebulk [-onl|-otl|-onr] [-sx] path key ... β€” Remove records at once.
  • kchashmgr getbulk [-onl|-otl|-onr] [-sx] [-px] path key ... β€” Retrieve records at once.
  • kchashmgr check [-onl|-otl|-onr] path β€” Checks consistency. vibe check on your database fr fr πŸ”

πŸ’… the options, bestie πŸ’…

Options feature the following. every single one, we're not skipping anybody, she deserves her moment πŸ‘‘

  • -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.
  • -apow num β€” specifies the power of the alignment of record size.
  • -fpow num β€” 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.
  • -bnum num β€” specifies the number of buckets of the hash table.
  • -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.
  • -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. that's it, that's the whole story πŸ’€


🌸 SEE ALSO 🌸


and that's the tea, bestie β€” this page came from Kyoto Cabinet, dated 2012-05-24, filed under KCHASHMGR(1) in section 1 of the manual πŸ’– go forth and manage that hash database, you absolute icon πŸ‘‘βœ¨