KiokuD...Default(3pm)

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

πŸ’– KiokuD...Default(3pm) πŸ’–

okay bestie, buckle up, we're reading the manual page for KiokuDB::TypeMap::Default β€” that's a 3pm page, aka User Contributed Perl Documentation, aka somebody in the Perl community said "here, you handle this one" 🫢


✨ NAME ✨

KiokuDB::TypeMap::Default β€” a standard KiokuDB::TypeMap with predefined entries. that's it, that's the whole vibe πŸ’…


🌸 VERSION 🌸

version 0.57 β€” periodt, that's the number, no notes πŸ’€


πŸ¦‹ SYNOPSIS πŸ¦‹

# the user typemap implicitly inherits from the default one, which is
# provided by the backend.

my $dir = KiokuDB->new(
    backend => $b,
    typemap => $user_typemap,
);

so like. your user typemap implicitly inherits from the default one, and the default one is provided by the backend. you don't go get it yourself, the backend hands it to you. very main character energy of the backend ngl πŸ‘‘


🌈 DESCRIPTION 🌈

okay so here's the tea πŸ“ the default typemap isn't actually defined in one place β€” it's defined per backend, specifically in KiokuDB::TypeMap::Default::JSON and KiokuDB::TypeMap::Default::Storable. so there's two of them, one for each backend situation.

the list of classes handled by both is the same β€” same roster, same lineup ✨ β€” but the typemap entries themselves are tailored to the specific backend's requirements/capabilities. like, same outfit, different tailoring for the occasion, iykyk πŸŽ€

heads up bestie: the entries have no impact unless you are actually using the listed modules. so if you're not using them, they're just sitting there being decorative. cute but unemployed πŸ’…

the default typemap is created using KiokuDB::TypeMap::Composite and accepts all the standard options. all of them. the standard ones. yes. 🫢


πŸ‘‘ SUPPORTED TYPES πŸ‘‘

the following typemaps provide support for these classes β€” this is the full roster, no skips, no "and friends", every single one:

  • core β€” supports KiokuDB::Set
  • tie β€” supports Tie::RefHash, Tie::IxHash
  • datetime β€” supports DateTime
  • uri_typemap β€” supports URI, URI::WithBase
  • path_class β€” supports Path::Class::Entity
  • authen_passphrase β€” supports Authen::Passphrase

six entries, all accounted for, slay 🌟


🧚 AUTHOR 🧚

Yuval Kogman <nothingmuch@woobling.org> β€” the icon, the legend, the one who wrote it 🫢


this software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive. yes that's the year, yes it's a while ago, and no we don't make the rules πŸ’€

it's free software β€” you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. that's the whole license situation, go forth and remix ✨


and that's the page, bestie πŸŽ€ written up from perl v5.34.0, dated 2022-05-23. love that for us. go forth, configure your typemap, be the main character of your own object graph πŸ’…πŸŒˆ

πŸ“¦ where this page comes from