NAME

Bot::BasicBot::Pluggable::Module::SimpleBlog::Store::SQLite - SQLite storage for Bot::BasicBot::Pluggable::Module::SimpleBlog.

SYNOPSIS

use Bot::BasicBot::Pluggable::Module::SimpleBlog::Store::SQLite;

my $blog_store =
  Bot::BasicBot::Pluggable::Module::SimpleBlog::Store::SQLite->new(
    "/home/bot/brane.db" );

DESCRIPTION

Store URLs in a sqlite database for Bot::BasicBot::Pluggable::Module::SimpleBot.

METHODS

new
my $blog_store =
  Bot::BasicBot::Pluggable::Module::SimpleBlog::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.

store
$store->store( timestamp => $timestamp,
               name      => $who,
               channel   => $channel,
               url       => $url,
               comment   => $comment );

Stores the given information in the database. Croaks on error.

BUGS

No tests.

SEE ALSO

AUTHOR

Kake Pugh (kake@earth.li).

COPYRIGHT

Copyright (C) 2003 Kake Pugh.  All Rights Reserved.

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:

Around line 106:

You forgot a '=back' before '=head1'