Bot::B...e::DBI(3pm)

πŸ“¦
version 1.30 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– 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