KiokuD...e::YAML(3pm)

πŸ“¦
version 0.57 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

✨ 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 to YAML::XS::Dump. that's the whole job, and it does it gorgeously. ✨
  • deserialize $str β€” the reverse queen. calls YAML::XS::Load on 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. πŸ’œ


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