Bot::BasicBot::Pluggable::Module::Notes::Store::SQLite - SQLite storage for Bot::BasicBot::Pluggable::Module::Notes.
use Bot::BasicBot::Pluggable::Module::Notes::Store::SQLite; my $blog_store = Bot::BasicBot::Pluggable::Module::Notes::Store::SQLite->new( "/home/bot/brane.db" );
Store notes in a sqlite database for Bot::BasicBot::Pluggable::Module::Notes.
my $blog_store = Bot::BasicBot::Pluggable::Module::Notes::Store::SQLite->new( "/home/bot/brane.db" );
You must supply a filename writeable by the user the bot runs as. The file need not already exist; it will be created and the correct database schema set up as necessary.
Croaks if DBD::SQLite fails to connect to the file.
my $dbh = $store->dbh;
Returns the store's database handle.
$store->store( timestamp => $timestamp, name => $who, channel => $channel, notes => $message);
Stores the given information in the database. Croaks on error.
No retrieval methods yet.
Bot::BasicBot::Pluggable::Module::Notes
Jess Robinson <castaway@desert-island.me.uk>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install Bot::BasicBot::Pluggable::Module::Notes, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::BasicBot::Pluggable::Module::Notes
CPAN shell
perl -MCPAN -e shell install Bot::BasicBot::Pluggable::Module::Notes
For more information on module installation, please visit the detailed CPAN module installation guide.