Bot::B...e::DBI(3pm)
π NAME π
okay so bestie, say hi to Bot::BasicBot::Pluggable::Store::DBI β she's the girl who uses DBI to give you a storage backend. that's it, that's the whole job description. slay. π
β¨ VERSION β¨
this one's rockin' version 1.30. periodt. π
π¦ SYNOPSIS π¦
here's the vibe, copy-paste ready, no cap:
my $store = Bot::BasicBot::Pluggable::Store::DBI->new(
dsn => "dbi:mysql:bot",
user => "user",
password => "password",
table => "brane",
# create indexes on key/values?
create_index => 1,
);
$store->set( "namespace", "key", "value" );
like, look at her go. constructing the store, then setting a namespace/key/value. iconic behavior. π
πΈ DESCRIPTION πΈ
so basically? this is a Bot::BasicBot::Pluggable::Store that uses a database to stash all the values your modules set. yes, a whole actual database, because we do not do things halfway around here. π
and the complex values? those don't just get thrown in raw β they're stored using Storable. so if your value is giving complicated, Storable handles the glow-up before it hits the DB. π¦
π«Ά AUTHOR π«Ά
Mario Domgoergen <mdom@cpan.org> wrote this, and we love that for him. π
this program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
lowkey the most important part: same terms as Perl itself, so go off, remix her, just keep the receipts. π§
and that's the whole page, bestie β perl v5.40.0, dated 2024-08-24, the Bot::B...e::DBI(3pm) energy we all needed. mwah. π πβ¨
π¦ where this page comes from
- ubuntu resolute: libbot-basicbot-pluggable-perl 1.30+ds1-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libbot-basicbot-pluggable-perl 1.30+ds1-1 Β· 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