TCRMGR(1)

πŸ“¦ version 1.1.41, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

tcrmgr β€” the command line utility of the remote database API. This is the TCRMGR(1) page from Tokyo Tyrant, and bestie, it's giving β€œtiny utility, big remote-database energy.” πŸ’…


πŸ’… DESCRIPTION πŸ’…

Okay so picture this: tcrmgr is a utility for test and debugging of the remote database API and its applications. It's not trying to be the main character of your database stack, but it absolutely has main character energy when you need to poke at it. 🫢

Here's the cast of placeholder names you'll see, and what each one means:

  • host β€” the host name of the server.
  • key β€” the key of a record.
  • value β€” the value of a record.
  • params β€” the tuning parameters.
  • dpath β€” the destination file.
  • func β€” the name of the function.
  • arg β€” the arguments of the function.
  • file β€” the input file.
  • upath β€” the update log directory.
  • mhost β€” the host name of the replication master.
  • url β€” the target URL.

Now the command forms, verbatim, because we do not mess with syntax in this house:

tcrmgr inform [-port num] [-st] host
tcrmgr put [-port num] [-sx] [-sep chr] [-dk|-dc|-dai|-dad] host key value
tcrmgr out [-port num] [-sx] [-sep chr] host key
tcrmgr get [-port num] [-sx] [-sep chr] [-px] [-pz] host key
tcrmgr mget [-port num] [-sx] [-sep chr] [-px] host [key...]
tcrmgr list [-port num] [-sep chr] [-m num] [-pv] [-px] [-fm str] host
tcrmgr ext [-port num] [-xlr|-xlg] [-sx] [-sep chr] [-px] host func [key [value]]
tcrmgr sync [-port num] host
tcrmgr optimize [-port num] host [params]
tcrmgr vanish [-port num] host
tcrmgr copy [-port num] host dpath
tcrmgr misc [-port num] [-mnu] [-sx] [-sep chr] [-px] host func [arg...]
tcrmgr importtsv [-port num] [-nr] [-sc] host [file]
tcrmgr restore [-port num] [-ts num] [-rcc] host upath
tcrmgr setmst [-port num] [-mport num] [-ts num] [-rcc] host [mhost]
tcrmgr repl [-port num] [-ts num] [-sid num] [-ph] host
tcrmgr http [-ah name value] [-ih] url
tcrmgr version

Options feature the following. Slay, let's go option by option:

  • -port num β€” specify the port number. πŸ”Œ
  • -st β€” print miscellaneous status data.
  • -sx β€” input data is evaluated as a hexadecimal data string.
  • -sep chr β€” specify the separator of the input data.
  • -dk β€” use the function tcrdbputkeep instead of tcrdbput.
  • -dc β€” use the function tcrdbputcat instead of tcrdbput.
  • -dai β€” use the function tcrdbaddint instead of tcrdbput.
  • -dad β€” use the function tcrdbadddouble instead of tcrdbput.
  • -px β€” 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.
  • -xlr β€” perform record locking.
  • -xlg β€” perform global locking.
  • -mnu β€” omit the update log.
  • -nr β€” use the function tcrdbputnr instead of tcrdbput.
  • -sc β€” normalize keys as lower cases.
  • -mport num β€” specify the port number of the replication master.
  • -ts num β€” specify the beginning time stamp.
  • -rcc β€” check consistency of replication.
  • -sid num β€” specify the self server ID.
  • -ph β€” print human-readable data.
  • -ah name value β€” add a request header.
  • -ih β€” output response headers also.
Two important little notes, bestie: if the port number is not more than 0, UNIX domain socket is used and the path of the socket file is specified by the host parameter. Also, this command returns 0 on success, another on failure. That's the exit-status vibe check. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹

Go touch grass with these other pages, iykyk:


πŸ’œ Sign-off time: this is the TCRMGR(1) page from Tokyo Tyrant, source/version Man Page, dated 2010-08-05. Mwah, go debug something iconic. πŸŽ€βœ¨

πŸ“¦ where this page comes from