KiokuD...elegate(3pm)

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

πŸ’– NAME πŸ’–

KiokuDB::Backend::Serialize::Delegate β€” ok so bestie, this is the vibe: instead of making a role do the serialization for a backend, you just hand it a whole KiokuDB::Serializer object and let that do the work. Delegate era. πŸ’…


✨ VERSION ✨

version 0.57 β€” yes, we're on 0.57, keep up 🫢


πŸŽ€ SYNOPSIS πŸŽ€

package MyBackend;
use Moose;

with qw(
    ...
    KiokuDB::Backend::Serialize::Delegate
);

MyBackend->new(
    serializer => "yaml",
);

Like… that's it. You compose the role, you pass a serializer string, and boom πŸ’₯


🌸 DESCRIPTION 🌸

So here's the tea, bestie: this role gives your backend a serialzier attribute β€” yep, that's literally how it's spelled in the docs, no cap, we are not fixing it, it's part of the lore now πŸ™ˆ β€” and by default that attribute is a KiokuDB::Serializer::Storable.

The iconic part? It has coercions from a moniker string. Which means picking your serialization format is as easy as passing a little string. It's giving effortless. It's giving "format selection but make it cute". ✨


πŸ‘‘ AUTHOR πŸ‘‘

Yuval Kogman <nothingmuch@woobling.org> β€” main character energy fr fr πŸ’œ


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. Periodt. 🩷


and that's the whole page, bestie β€” perl v5.34.0, dated 2022-05-23, from the Perl User Contributed Documentation, mwah πŸ’‹

πŸ“¦ where this page comes from