KiokuD...e::YAML(3pm)
β¨ KiokuDB::Backend::Serialize::YAML β¨
okay bestie, so this page is from the User Contributed Perl Documentation corner of the world, and it's all about KiokuDB::Backend::Serialize::YAML β a role that does YAML::XS based serialization of KiokuDB::Entry objects. yes, that's a lot of colons. we love a namespace that ate. π
π VERSION π
version 0.57 β that's the one, no cap.
πΈ SYNOPSIS πΈ
want the whole vibe? here's how you'd consume this role in your own backend:
package MyBackend;
use Moose;
with qw(KiokuDB::Backend::Serialize::YAML);
that's it. with the role, become the backend. main character energy fr fr. π¦
π DESCRIPTION π
okay so, real talk: KiokuDB::Backend::Serialize::Delegate is preferred to using this directly. so likeβ¦ this is giving "use the other one, bestie." no shade, just the documented reality. π
β METHODS β
here's the whole menu of things this role hands you:
serialize $entryβ hands the entry off toYAML::XS::Dump. that's the whole job, and it does it gorgeously. β¨deserialize $strβ the reverse queen. callsYAML::XS::Loadon the string. πserialize_to_stream $fh, $entryβ serializes the entry and prints it straight out to the file handle. stream it, don't gatekeep. πdeserialize_from_stream $fhβ reads from the handle until a YAML document boundary is reached, then deserializes whatever's chilling in the current buffer. π
π AUTHOR π
Yuval Kogman <nothingmuch@woobling.org> β the icon, the legend. π
π«Ά 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.
and that's the whole page, bestie!! π the fine print down at the bottom says this is perl v5.34.0, dated 2022-05-23, and the whole thing lives in the KiokuDB::Backend::Serialize::YAML(3pm) manual. slay, read responsibly, and go serialize something cute. π
β¨π¦
π¦ 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