Jifty:...orable(3pm)
π Jifty::DBI::Filter::Storable π
okay so bestie, gather round, because this is genuinely one of those little modules that does one thing and does it immaculately. the manual name is Jifty::DBI::Filter::Storable and it lives in section 3pm of the perl docs, iykyk.
β¨ NAME β¨
Jifty::DBI::Filter::Storable β Encodes arbitrary data using Storable π
like. that's the whole job. and she ate.
πΈ DESCRIPTION πΈ
so the vibe here is: this filter lets you stash arbitrary Perl data structures inside a column of type blob π
and the way it pulls that off is by handing the whole thing over to Storable to serialize it. no cap, that's it. your weird nested hash-of-arrays-of-objects? your extremely unhinged data structure you built at 3am? she'll hold it for you π«Ά
π¦ encode π¦
if the value is defined, then it gets encoded using nfreeze in Storable β¨
and if the value is not defined? she simply does nothing. does not touch it. does not move. not me being unbothered π
π decode π
if the value is defined, then it gets decoded using thaw in Storable πΈ
otherwise? nothing happens. otherwise she does nothing. periodt. π
fr fr this is the round trip βnfreezeon the way in,thawon the way out. iconic behavior tbh.
β SEE ALSO β
Jifty::DBI::Filterβ the parent situation, the blueprint, the main character πStorableβ the actual muscle behind the whole operation π₯
perl v5.34.0 Β· 2022-06-15 π¦
and that's the whole page, bestie β documented, dated, and delivered with love. go forth and store your arbitrary data structures responsibly πβ¨πΈ
π¦ where this page comes from
- debian bookworm: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libjifty-dbi-perl 0.78-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms