Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Bot::BasicBot::Pluggable::Store::DBI - use DBI to provide a storage backend

Author

       Mario Domgoergen <mdom@cpan.org>

       This program is free software; you can redistribute it and/or modify it under the same terms as Perl
       itself.

perl v5.40.0                                       2024-08-24             Bot::BasicBot::...ble::Store::DBI(3pm)

Description

       This is a Bot::BasicBot::Pluggable::Store that uses a database to store the values set by modules.
       Complex values are stored using Storable.

Name

       Bot::BasicBot::Pluggable::Store::DBI - use DBI to provide a storage backend

Synopsis

         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" );

Version

       version 1.30

See Also