Lucy::...obType(3pm)
π 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 isfalse, 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
- fedora 43: perl-Lucy 0.6.2-26.fc43 Β· Apache-2.0 AND MIT AND Unicode-DFS-2015
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms