Jifty:...base64(3pm)
β¨ Jifty::DBI::Filter::base64 β¨
okay bestie, welcome to the base64 filter from the Jifty::DBI fam π (it lives in the User Contributed Perl Documentation section, iykyk)
π NAME π
Jifty::DBI::Filter::base64 β it encodes data as base64, periodt π
πΈ DESCRIPTION πΈ
so the whole vibe of this filter? it lets you store arbitrary data in a column of type <code>text</code>. that's it, that's the serve π«Ά no cap.
π¦ encode π¦
if the value is defined, it gets encoded using <code>encode_base64</code> in <code>MIME::Base64</code> β but <em>only</em> after it's been passed through <code>encode_utf8</code> in <code>Encode</code> first. two-step glow-up, iconic β¨
and if the value is not defined? it literally does <strong>nothing</strong>. doesn't touch it. minding its own business π
π§ decode π§
if the value is defined, it decodes it using <code>decode_base64</code> in <code>MIME::Base64</code>. otherwise, <strong>do nothing</strong> β it's giving chill, it's giving unbothered π
π SEE ALSO π
Jifty::DBI::Filterβ the parent filter energy πMIME::Base64β where all the actual base64 magic happens π
lowkey reminder: this page is perl v5.34.0, dated 2022-06-15, and it's part of the Jifty:...base64(3pm) manual. mwah, go encode something cute ππ β¨
π¦ 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