KiokuD...::Clear(3pm)
π NAME π
okay bestie so this is KiokuDB::Backend::Role::Clear β it's a Perl manual page (a 3pm, aka a module doc), and it's the backend clearing api. yes, that's literally the whole job description. clearing. the api. for backends. iconic behavior honestly.
β¨ VERSION β¨
version 0.57 β that's the one we're talking about, no cap.
π SYNOPSIS π
here's how you actually use it, and yes you do with it like a normal Moose role, don't be weird about it:
package KiokuDB::Backend::MySpecialBackend;
use Moose;
use namespace::clean -except => 'meta';
with qw(
KiokuDB::Backend
KiokuDB::Backend::Role::Clear
);
sub clear {
...
}
like. you consume both roles, you write your own clear, and the ... is doing so much heavy lifting there. that's the assignment. π«Ά
πΈ DESCRIPTION πΈ
so this backend role hands you an api for removing all entries from a backend. wipe it. gone. bye. π
and the tea is: this is optionally used by the dump loader script, plus some parts of the test suite. so it's not like, mandatory-mandatory, it's a "when you need it you need it" situation. iykyk.
π REQUIRED METHODS π
you must implement this, bestie, there's no default and no vibes-based fallback:
clearβ this method should clear all entries in the backend. that's it. that's the whole method. clear the entries. all of them. π§Ήβ¨
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org> β shoutout to the author, the main character who wrote this. π
β COPYRIGHT AND LICENSE β
This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so like, go forth, remix responsibly, slay. π¦
and that's the whole page fr fr β short and sweet, no notes. π
generated for perl v5.34.0 on 2022-05-23 β bye bestie, go clear some backends π
β¨
π¦ where this page comes from
- debian bookworm: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libkiokudb-perl 0.57-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libkiokudb-perl 0.57-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms