Lucy::...obType(3pm)

πŸ“¦
version 0.6.2 Β· 2 versions
, in fedora 43

πŸ’– Lucy::Plan::BlobType πŸ’–

okay so bestie, we're in the Lucy docs, specifically the Lucy::...obType(3pm) page β€” that's the User Contributed Perl Documentation, and yes the title got truncated in the header, it's giving ✨mystery✨ but it's literally just BlobType. no cap.


🌸 NAME 🌸

Lucy::Plan::BlobType β€” the default behaviors for binary fields, periodt. πŸ’…


✨ SYNOPSIS ✨

my $string_type = Lucy::Plan::StringType->new;
my $blob_type   = Lucy::Plan::BlobType->new( stored => 1 );
my $schema      = Lucy::Plan::Schema->new;
$schema->spec_field( name => 'id',   type => $string_type );
$schema->spec_field( name => 'jpeg', type => $blob_type );

like, look at her go πŸ¦‹ setting up a schema with an id field and a jpeg field, one of them a plain string, one of them a blob. main character energy fr fr.


πŸŽ€ DESCRIPTION πŸŽ€

BlobType is an implementation of FieldType that's tuned for use with fields containing binary data.

and here's the thing, bestie β€” those binary fields cannot be indexed or searched. only stored. that's it. that's the whole vibe. πŸ™ˆ

so don't come for me asking why your blob isn't searchable, because it's literally not built for that. it's a storage girlie, not a search girlie. πŸ’€

πŸ’œ CONSTRUCTORS πŸ’œ

🧚 new

my $blob_type = Lucy::Plan::BlobType->new(
    stored => 1,  # default: false
);

Create a new BlobType. slay. 🌈

  • stored β€” a boolean indicating whether the field should be stored. (and icymi, the default is false, so if you want it stored you gotta say so. no mind reading here. ✨)

πŸ‘‘ INHERITANCE πŸ‘‘

Lucy::Plan::BlobType isa Lucy::Plan::FieldType isa Clownfish::Obj.

like, it's a whole lineage. she comes from good stock. 🫢


okay that's the whole page, bestie πŸ’– this was perl v5.42.0, dated 2025-07-25 β€” love that for us, obsessed, go store some blobs. πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from