KiokuD...:Naive(3pm)

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

πŸ’– KiokuDB::TypeMap::Entry::Naive πŸ’–

okay bestie, so this is a page from the KiokuDB::TypeMap::Entry::Naive(3pm) manual β€” a little Perl module from the User Contributed Perl Documentation pile β€” and it is exactly what it sounds like. it's the typemap entry for "simple" objects. no cap. ✨


🌸 NAME 🌸

KiokuDB::TypeMap::Entry::Naive β€” a typemap entry for "simple" objects 🫢


πŸŽ€ VERSION πŸŽ€

version 0.57 ⭐


✨ SYNOPSIS ✨

KiokuDB::TypeMap->new(
    entires => {
        'My::Class' => KiokuDB::TypeMap::Entry::Naive->new,
    },
);
πŸ’… yes, entires is spelled exactly like that in the original. do not come for me, i am simply the messenger. iykyk.

πŸ¦‹ DESCRIPTION πŸ¦‹

this typemap entry is the one for plain objects that you can store just by walking them recursively. it's giving "just vibe-check every attribute and keep it moving." 🌈

most objects fall into this category, periodt. but there are some notable exceptions, and you need to know about them:

  • XS based objects, using a pointer as a number πŸ’€ β€” when these get deserialized, the pointer value is no longer valid, and that causes segfaults. yeah. like, actual crashing. not cute at all.
  • Inside out objects 🫠 β€” the referent is really a flyweight object with no data, so the object will be missing its attributes, and you need a suitable typemap entry instead. this applies to any object interacting with a global state of some sort.
  • Objects with magic πŸ™ˆ β€” Perl SV level magic is not retained, apart from tied values.

πŸ‘‘ ATTRIBUTES πŸ‘‘

  • intrinsic β€” if true, the object will be collapsed without an ID, as part of its parent. main character energy but make it anonymous. ✨

🌟 AUTHOR 🌟

Yuval Kogman <nothingmuch@woobling.org> πŸ’œ


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 thing bestie, we ate, no crumbs left πŸ“

this was page KiokuDB::TypeMap::Entry::Naive(3pm) from perl v5.34.0, dated 2022-05-23 β€” mwah, go forth and store your simple objects responsibly πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from