TCATEST(3)

πŸ“¦
version 1.4.48 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

tcamgr β€” the command line utility of the abstract database API. okay so yes, this is the Tokyo Cabinet page TCATEST(3), and we're about to get into it, bestie. πŸ’…βœ¨

✨ DESCRIPTION ✨

tcamgr is a utility for test and debugging of the abstract database API and its applications. no cap, that's the whole assignment. 🫢

here's the little dictionary of placeholders, because words matter:

  • name β€” specifies the name of a database.
  • key β€” specifies the key of a record.
  • value β€” specifies the value of a record.
  • params β€” specifies the tuning parameters.
  • func β€” specifies the name of a function.
  • arg β€” specifies the arguments of the function.
  • dest β€” specifies the path of the destination file.

and now the command menu, served fresh:

  • tcamgr create name β€” create a database file. iconic. πŸ‘‘
  • tcamgr inform name β€” print miscellaneous information to the standard output.
  • tcamgr put [-sx] [-sep chr] [-dk|-dc|-dai|-dad] name key value β€” store a record.
  • tcamgr out [-sx] [-sep chr] name key β€” remove a record.
  • tcamgr get [-sx] [-sep chr] [-px] [-pz] name key β€” print the value of a record.
  • tcamgr list [-sep chr] [-m num] [-pv] [-px] [-fm str] name β€” print keys of all records, separated by line feeds.
  • tcamgr optimize name params β€” optimize a database file.
  • tcamgr misc [-sx] [-sep chr] [-px] name func [arg...] β€” call a versatile function for miscellaneous operations.
  • tcamgr map [-fm str] name dest β€” map records into another B+ tree database.
  • tcamgr version β€” print the version information of Tokyo Cabinet.

the options are giving very much "here's the full toolkit", bestie:

  • -sx β€” the input data is evaluated as a hexadecimal data string.
  • -sep chr β€” specify the separator of the input data.
  • -dk β€” use the function tcadbputkeep instead of tcadbput.
  • -dc β€” use the function tcadbputcat instead of tcadbput.
  • -dai β€” use the function tcadbaddint instead of tcadbput.
  • -dad β€” use the function tcadbadddouble instead of tcadbput.
  • -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.

exit status check, bestie: this command returns 0 on success, another on failure. periodt. 🚦

πŸ‘€ SEE ALSO πŸ‘€

go read these next, iykyk: tcatest(1), tcamttest(1), tcadb(3), tokyocabinet(3).

okay that's the whole page, bestie β€” source/version: Man Page; date: 2012-08-18; page: TCATEST(3). mwah πŸ’–βœ¨πŸ¦‹