c-icap-mktcb(8)

πŸ“¦ version 0.5.7, in epel 10, epel 9, fedora 43, fedora 44

πŸŽ€ NAME πŸŽ€

c-icap-mktcb β€” a simple utility to create Tokyo Cabinet lookup tables. that's it, that's the whole job description bestie πŸ’…


πŸ“œ SYNOPSIS πŸ“œ

c-icap-mktcb [ -V ] [ -d debug_level ] [ -i file.txt ] [ -o file.db ] [
-t string|int|ip ] [ -v string|int|ip ] [ --dump ]

πŸ’– DESCRIPTION πŸ’–

okay so real talk: the c-icap-mktcb utility can be used to create Tokyo Cabinet databases which can be used as lookup tables by the c-icap server. you make the db, the server reads the db, everyone eats. periodt ✨


πŸŽ€ OPTIONS πŸŽ€

  • -V β€” prints version informations. little hello, who am i, what build am i 🫢
  • -d debug_level β€” the debug level. turn the dial up and watch it yap.
  • -i file.txt β€” the file that contains the data, and heads up: it's required. the line format of this file must be:
key: value1, value2, ....

so key, colon, then your values comma-separated. keep the format or it will simply not vibe 😭

  • -p file.[tcb|tch] β€” the database file path to be created. use the .tcb suffix for a btree based database, or .tch for a hash based database. choose your fighter πŸ’…
  • -o option1=val1#options2=val2... β€” the database options, separated by a #. for hash databases select one or more of the 'bnum', 'apow', 'fpow', 'opts', 'rcnum', 'xmsiz', and 'dfunit' options. for b-tree databases use one or more from 'lmemb', 'nmemb', 'bnum', 'apow', 'fpow', 'opts', 'lcnum', 'ncnum', 'xmsiz', and 'dfunit' for btree based databases. read the Tokyo Cabinet manual for what values those options can possibly take, i'm not out here guessing for you πŸ“š
  • -t string|int|ip β€” the type of the key. select string for string keys, int for integer keys, or ip for using IP addresses as keys. the "string" is the default, she's the main character here πŸ‘‘
  • -v string|int|ip β€” the type of the values. and yeah, the "string" is the default here too. twins πŸ’ž
  • --dump β€” do not update the database, just dump it to the screen. look but don't touch energy πŸ™ˆ

🌈 EXAMPLES 🌈

1. build a btree db from a text file:

c-icap-mktcb -p keys.tcb -i keys.txt

it builds the keys.tcb as a btree Tokyo Cabinet database, using string as data type for keys and values. slay πŸ”₯

2. peek inside a db you already made:

c-icap-mktcb -p keys.tcb --dump

dump the contents of the keys.tcb database. no notes, just looking πŸ’œ


πŸ‘€ SEE ALSO πŸ‘€

c-icap(8) c-icap-config(8) c-icap-libicapapi-config(8)

go read the whole friend group, they're all iconic πŸ’–


πŸ‘‘ AUTHOR πŸ‘‘

Tsantilas Christos β€” the actual author, give them their flowers πŸ’


okay bestie that's the whole page 🫢 this one's from the c_icap_modules source, version master-36a6688, and the page itself is c-icap-mktcb(8). go make some Tokyo Cabinet tables, you got this βœ¨πŸ’…πŸŽ€