TCFMGR(1)

πŸ’– TCFMGR(1) β€” the Tokyo Cabinet girlie's field guide πŸ’–

okay so bestie, welcome to tcfmgr, aka the manual page for the command line utility of the fixed-length database API, straight out of Tokyo Cabinet. section 1. she's a real one. let's get into it 🫢


✨ NAME ✨

tcfmgr β€” the command line utility of the fixed-length database API


🌸 DESCRIPTION 🌸

okay so real talk: tcfmgr is a utility for test and debugging of the fixed-length database API and its applications. it's giving lab coat, it's giving "i'm poking at this thing on purpose". and she takes a bunch of little placeholder words that you gotta know, so let's define the girlies first:

  • path β€” specifies the path of a database file.
  • width β€” specifies the width of the value of each record.
  • limsiz β€” specifies the limit size of the database file.
  • key β€” specifies the key of a record.
  • value β€” specifies the value of a record.
  • file β€” specifies the input file.

got all that? slay. now here's the whole menu of what she can do, no cap, nothing skipped:

  • tcfmgr create path [width [limsiz]] β€” Create a database file.
  • tcfmgr inform [-nl|-nb] path β€” Print miscellaneous information to the standard output.
  • tcfmgr put [-nl|-nb] [-sx] [-dk|-dc|-dai|-dad] path key value β€” Store a record.
  • tcfmgr out [-nl|-nb] [-sx] path key β€” Remove a record.
  • tcfmgr get [-nl|-nb] [-sx] [-px] [-pz] path key β€” Print the value of a record.
  • tcfmgr list [-nl|-nb] [-m num] [-pv] [-px] [-rb lkey ukey] [-ri str] path β€” Print keys of all records, separated by line feeds.
  • tcfmgr optimize [-nl|-nb] path [width [limsiz]] β€” Optimize a database file.
  • tcfmgr importtsv [-nl|-nb] [-sc] path [file] β€” Store records of TSV in each line of a file.
  • tcfmgr version β€” Print the version information of Tokyo Cabinet.

πŸ‘‘ OPTIONS πŸ‘‘

the options are, and i quote the vibe but never the facts, featured as follows. every single one, bestie, we are not skipping a single flag πŸ’…

  • -nl β€” enable the option FDBNOLCK.
  • -nb β€” enable the option FDBLCKNB.
  • -sx β€” the input data is evaluated as a hexadecimal data string.
  • -dk β€” use the function tcfdbputkeep instead of tcfdbput.
  • -dc β€” use the function tcfdbputcat instead of tcfdbput.
  • -dai β€” use the function tcfdbaddint instead of tcfdbput.
  • -dad β€” use the function tcfdbadddouble instead of tcfdbput.
  • -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.
  • -rb lkey ukey β€” specify the range of keys.
  • -ri str β€” specify the interval notation of keys.
  • -sc β€” normalize keys as lower cases.

πŸ’€ EXIT STATUS πŸ’€

this command returns 0 on success, and another on failure. periodt. so like, check your exit codes, iykyk.


πŸ”₯ SEE ALSO πŸ”₯

go be nosy, bestie, these are the sisters:


🌈 and that's the whole page, no crumbs left behind. every flag, every placeholder, every function name β€” all present and accounted for, fr fr.

man page Β· 2012-08-18 Β· TCFMGR(1) β€” mwah, she's iconic, she's from Tokyo Cabinet, and she said what she said πŸ’–βœ¨πŸŽ€πŸ¦‹