Metaba...tabase(3pm)
π Metabase::Resource::metabase β the resource class, bestie π
okay so this is Metabase::Resource::metabase, a class for Metabase resources, and it lives over in the User Contributed Perl Documentation corner of your perl setup. she's the one who handles the metabase scheme, and she's about to eat, no cap π
β¨ VERSION β¨
version 0.025 β that's her, that's the girl π
π SYNOPSIS π
here's the whole vibe, look:
my $resource = Metabase::Resource->new(
"metabase:user:B66C7662-1D34-11DE-A668-0DF08D1878C0"
);
my $resource_meta = $resource->metadata;
my $typemap = $resource->metadata_types;
literally four lines and you're in. iconic β¨
πΈ DESCRIPTION πΈ
so what she does is generates resource metadata for resources of the scheme 'metabase'. that's the whole job, and she does it beautifully π«Ά
and the Metabase::Resource::metabase class supports the following sub-type(s). yes, plural-coded, because there's a whole little roster:
π¦ fact
my $resource = Metabase::Resource->new(
"metabase:fact:bd83d51e-0eea-11df-8413-0018f34ec37c"
);
this resource is for a generic Metabase Fact β like, a Fact about another Fact, very meta of her, we love that for her π«
and for the example up there? the resource metadata structure would contain these elements:
scheme => metabase
type => user
fact => bd83d51e-0eea-11df-8413-0018f34ec37c
periodt. that's exactly what it says, bestie, I'm not touching a single character of it π
π user
my $resource = Metabase::Resource->new(
"metabase:user:b66c7662-1d34-11de-a668-0df08d1878c0"
);
this one is for a Metabase user β aka the resource corresponding to the GUID of a Metabase::User::Profile. main character energy, honestly π
and the resource metadata structure for the example above would contain these elements:
scheme => metabase
subtype => user
user => b66c7662-1d34-11de-a668-0df08d1878c0
so clean, so tidy, she's the moment π
π BUGS π
found something broken? please report any bugs or feature using the CPAN Request Tracker. you can submit bugs through the web interface right here:
<http://rt.cpan.org/Dist/Display.html?Queue=Metabase-Fact>
real talk though β when you submit a bug or a request, please include a test-file or a patch to an existing test-file that illustrates the bug or the desired feature. no vague vibes-only bug reports, bestie, we need receipts π
π«Ά AUTHORS π«Ά
look at this lineup. legends only:
- David Golden <dagolden@cpan.org>
- Ricardo Signes <rjbs@cpan.org>
- H.Merijn Brand <hmbrand@cpan.org>
ate. every single one. π
β COPYRIGHT AND LICENSE β
This software is Copyright (c) 2016 by David Golden.
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
free software, open arms, Apache License 2.0, January 2004 β that's the whole deal, no games πΈ
and that's the page!! she's from User Contributed Perl Documentation, she ships as perl v5.36.0, and this edition is dated 2022-10-14. go forth and build your Metabase resources, bestie β you're gonna do amazing π§πβ¨
π¦ where this page comes from
- ubuntu noble: libmetabase-fact-perl 0.025-4 Β· Apache-2.0
- ubuntu resolute: libmetabase-fact-perl 0.025-4 Β· Apache-2.0
- ubuntu stonking: libmetabase-fact-perl 0.025-4 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms