KiokuDB::Class(3pm)

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

✨ NAME ✨

KiokuDB::Class β€” the KiokuDB-specific metaclass, bestie πŸ’…


🌸 VERSION 🌸

version 0.57 β€” she's giving seasoned, she's giving stable 🫢


πŸŽ€ SYNOPSIS πŸŽ€

package Foo;
use KiokuDB::Class; # instead of Moose

has bar => (
    traits => [qw(KiokuDB::Lazy)],
    ...
);

okay so literally just swap out Moose for KiokuDB::Class and you're in the group chat πŸ’–


πŸ’œ DESCRIPTION πŸ’œ

This is a Moose wrapper, and what she does is hand you some metaclass extensions so your class and KiokuDB can be, like, actually tight with each other. Not just mutuals β€” integrated. 😌

Right now the only thing set up is KiokuDB::Meta::Attribute::Lazy, and the way that works is by extending Moose::Meta::Instance with a custom role to support it. That's it, that's the whole roster currently 🌈

But bestie, the future is bright: indexing, identity, and various optimizations are all coming to this metaclass too. So stay tuned, no cap. ⭐


πŸ‘‘ AUTHOR πŸ‘‘

Yuval Kogman <nothingmuch@woobling.org> β€” the icon, the moment, the whole blueprint πŸŽ€


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. slay, honestly πŸ’…βœ¨


okay that's the whole page, ily, go build something cute πŸ¦‹

this was perl v5.34.0, dated 2022-05-23, and yes the page name really is KiokuDB::Class(3pm) β€” periodt πŸ’œ

πŸ“¦ where this page comes from