Wiki::...SQLite(3pm)
π NAME π
You're on the Wiki::...SQLite(3pm) page β User Contributed Perl Documentation, bestie β and the main character is Wiki::Toolkit::Store::SQLite: the SQLite storage backend for Wiki::Toolkit. No cap, that's the whole name-and-purpose vibe. π¦
β¨ SYNOPSIS β¨
The synopsis is short and iconic: see Wiki::Toolkit::Store::Database. That's it. That's the whole section. π
πΈ METHODS πΈ
π new π
Create your store like this:
my $store = Wiki::Toolkit::Store::SQLite->new( dbname => "wiki" );
The dbname parameter is mandatory β you literally have to pass it, no skipping, periodt. π«Ά
π¦ check_and_write_node π¦
$store->check_and_write_node( node => $node,
checksum => $checksum,
%other_args );
This method locks the node, verifies the checksum, calls write_node_post_locking with all the arguments you supplied, and then unlocks the node. Lock it, check it, call it, unlock it β the full routine, bestie. β¨
It returns the version of the updated node on successful writing. It returns 0 if the checksum doesn't match, -1 if the change was not applied, and it croaks on error. So yeah: success gives you the version, mismatch gives you 0, not-applied gives you -1, and errors are a whole dramatic croak situation. π
That's the page, bb: perl v5.32.0, dated 2021-01-04, and it's literally Wiki::...SQLite(3pm). Mwah ππ
π¦ where this page comes from
- debian bookworm: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwiki-toolkit-perl 0.86-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms