DBIx::C...ceHandle(3)
πΈ NAME πΈ
DBIx::Class::ResultSourceHandle β Serializable pointers to ResultSource instances. This is the manual page for DBIx::Class::ResultSourceHandle(3), and yes, it's a User Contributed Perl Documentation page, so you know it's got that community-contributed sparkle. β¨
π¦ DESCRIPTION π¦
Okay so currently, instances of this class are used to allow proper serialization of ResultSources (which may contain unserializable elements like "CODE" references). That's the current main character job, no cap.
Originally, this module was used to remove the fixed link between Rows/ResultSets and the actual result source objects in order to obviate the need of keeping a schema instance constantly in scope, while at the same time avoiding leaks due to circular dependencies. Lowkey a whole rescue mission for your object graph. π«Ά
This is however no longer needed after introduction of a proper mutual-assured-destruction contract between a Schema instance and its ResultSource registrants. So that old job? Retired. The current serialization job? Still iconic. π
β¨ METHODS β¨
π new π
The page lists new, but doesn't give it its own description. Respect the mystery, bestie. π΅οΈβοΈ
π resolve π
Resolve the moniker into the actual ResultSource object. That's it, that's the whole glow-up. π₯
π STORABLE_freeze π
Freezes a handle. Ice ice baby. π§
π STORABLE_thaw π
Thaws frozen handle. It resets the internal schema reference to the package variable $thaw_schema. The recommended way of setting this is to use "$schema->thaw($ice)" which handles this for you. So you don't have to do the manual thaw dance β the recommended helper's got you. π«Ά
π«Ά FURTHER QUESTIONS? π«Ά
Check the list of additional DBIC resources. Go get that extra lore, bestie. π
π COPYRIGHT AND LICENSE π
This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library. Slay, legally. π
Sign-off tea β: this page is from perl v5.42.0, dated 2025-01-22, and the footer's all DBIx::C...ceHandle(3) β truncated header energy, iykyk. Byeee! πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBIx-Class 0.082844-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms