KiokuD...e::API(3pm)
π KiokuDB::Role::API β the manual page, but make it cute π
okay so bestie, you found the docs for KiokuDB::Role::API (it's a Perl module page, the 3pm kind, from the User Contributed Perl Documentation section) and honestly? it's a little one, but it's a mighty little one. sit down, grab a strawberry π, let's get into it.
β¨ VERSION β¨
version 0.57 β that's the one, that's the vibe, no cap.
πΈ SYNOPSIS πΈ
this is the whole point of the role, look:
has directory => (
isa => "KiokuDB",
handles => "KiokuDB::Role::API",
);
like. that's it. that's the slay. one handles and suddenly your attribute is doing all the work. main character energy fr fr π
π¦ DESCRIPTION π¦
so what is this thing actually doing? it's a role, and it drops in requires declarations for all the runtime methods of KiokuDB. why do we care? because that's literally how you set up delegations, bestie. it's giving "I'll hold the shape, you hold the object."
and it's not just a theory situation β it's used in, for example, KiokuX::User. iconic behavior honestly.
π METHODS π
here's the full list of what this role declares, and we are not skipping a single one, not even the one that shows up twice (and yes, new_scope really does appear twice in the original list β we respect the canon π):
new_scopetxn_dolookupexistsstoreinsertupdatedeep_updatedeleteis_rootset_rootunset_rootsearchall_objectsroot_setgrepscanclear_live_objectsnew_scopeobject_to_idobjects_to_idsid_to_objectids_to_objectslive_objectsdirectory
π directory π
and this one gets its own little spotlight, because it's special:
the directory method is the one you use to fetch the actual KiokuDB delegate. and here's the cute part β it works no matter how deeply it is nested. deeply nested? doesn't matter. directory will find it. she's resourceful like that. π§
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org> β thank you for your service, king.
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.
and it's free software, babes β you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. open source realness. we love to see it. π«Ά
k that's the whole page bestie, go forth and delegate responsibly β¨
and a lil sign-off for the record books: this page is from perl v5.34.0, dated 2022-05-23, and it's filed under KiokuDB::Role::API(3pm). mwah. πππ
π¦ 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