KiokuD...tSource(3pm)

πŸ“¦
version 1.23 Β· 2 versions
  • 1.23 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.23 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– KiokuD...tSource β€” the KiokuDB::TypeMap::Entry::DBIC::ResultSource page πŸ’–

okay bestie, this is from the User Contributed Perl Documentation corner of the 3pm manuals, and it's all about KiokuDB::TypeMap::Entry::DBIC::ResultSource β€” a typemap entry for DBIx::Class::ResultSource objects. no cap, that's the whole vibe. πŸ¦‹


✨ NAME ✨

KiokuDB::TypeMap::Entry::DBIC::ResultSource β€” literally a KiokuDB::TypeMap::Entry made for DBIx::Class::ResultSource objects. that's it, that's the girl. πŸ‘‘


🌸 VERSION 🌸

version 1.23 πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

okay so here's the tea, bestie. this typemap entry resolves result source handles symbolically, by name. like, it doesn't need to drag the whole actual object along β€” it just knows her by name. iconic behaviour, honestly. ✨

so when something holds a reference to the handle, that reference gets a special ID, and it looks exactly like this:

dbic:schema:rs:$name

and β€” important β€” those references are not actually written to storage. they're too cool for that. πŸ’€

now when you go looking up one of those IDs, the backend gets to work and dynamically searches for such a resultset in the DBIx::Class::Schema. yes babe, it goes and finds her live, in the wild, no pre-saving required. 🧚


πŸ’œ 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 page, bestie β€” written up against perl v5.34.0, dated 2022-05-24, and filed under KiokuD...tSource(3pm). go forth and slay your result sources. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from