TCRMGR(1)
π 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 functiontcrdbputkeepinstead oftcrdbput.-dcβ use the functiontcrdbputcatinstead oftcrdbput.-daiβ use the functiontcrdbaddintinstead oftcrdbput.-dadβ use the functiontcrdbadddoubleinstead oftcrdbput.-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 functiontcrdbputnrinstead oftcrdbput.-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 than0, UNIX domain socket is used and the path of the socket file is specified by thehostparameter. Also, this command returns0on 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
- nixos 26.05: tokyotyrant 1.1.41
- nixpkgs unstable: tokyotyrant 1.1.41
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms