KAPLA-SQLITE(1)
π KAPLA-SQLITE(1) β the Kapla Manual, bestie edition π
okay so picture this: it's kapla-sqlite, and it's here to read blocks from an SQLite database. That's the whole vibe. Let's get into it π«Ά
β¨ SYNOPSIS β¨
kapla sqlite [COMMAND] β¦
So here's the tea π β blocks of encoded content can totally be encoded in an SQLite database. Which is lowkey iconic for removeable storage, delay tolerant transport, or honestly any other sneakernet-esque transport you can dream up (yes, that means literally walking a file to another computer, no cap).
The commands below are all about getting blocks from SQLite databases. If you wanna go the other direction and store blocks to an SQLite database? That's a different quest β go look at the --sqlite option for the encode command, iykyk π
π COMMANDS π
import[--socket=ERIS_UNIX_SOCKET] [OPTION]β¦ SQLITE_DBβ Import blocks from an SQLite database. Just. Pull 'em all out. πopen[--socket=ERIS_UNIX_SOCKET] [OPTION]β¦ SQLITE_DBβ Open the SQLite database and make the blocks available from therein. On-demand queen behavior π
π¦ COMMON OPTIONS π¦
--help[=FMT](default=auto) β Shows this help in format FMT. The value FMT must be one ofauto,pager,grofforplain. Withauto, the format ispagerorplainwhenever theTERMenv var isdumbor undefined. (so like, if your terminal is having a moment, it keeps it simple β¨)--versionβ Show version information. The classic. The legend. π
π₯ EXIT STATUS π₯
kapla sqlite exits with:
0β on success. slay π123β on indiscriminate errors reported on standard error. π124β on command line parsing errors. (you typed something weird, bestie)125β on unexpected internal errors (bugs). π go file a bug fr fr
πΈ EXAMPLES πΈ
Step one: encode some content to an SQLite database:
kapla encode -n --sqlite block.sqlite file.txt
Step two: move the file block.sqlite to another machine with your favorite bike π² (yes, seriously, the manpage said bike, we love a physical transport moment) and open the database using:
kapla sqlite open block.sqlite
This will make the blocks stored in the block.sqlite database available to the Kapla store on-demand. Then you can decode content using blocks using the decode sub-command. Chef's kiss π₯
Alternatively β the impatient route, extremely valid β you can import all blocks contained in the database:
kapla sqlite import block.sqlite
β STANDARDS β
- SQLite for ERIS block storage β
https://eris.codeberg.page/eer/sqlite.xml
π SEE ALSO π
kapla-encode(1)β go read it, it's the other half of this story π
and that's the whole page, bestie π§ no notes, no skips, every flag accounted for. this gorgeous little document is Kapla 0.4.0 and it's signed KAPLA-SQLITE(1) β periodt. πβ¨
π¦ where this page comes from
- nixpkgs unstable: ocaml5.5.1-kapla 0.4.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms