Babble::DataSource::DBI - Babble data collector using DBI
use Babble; use Babble::DataSource::DBI; my $babble = Babble->new (); $babble->add_sources ( Babble::DataSource::DBI->new ( -location => "dbi:SQLite:dbname=babble.db", ) ); ...
Babble::DataSource::DBI implements a Babble data source class that fetches documents directly from whatever database DBI can fetch from.
This method creates a new object. The recognised parameters are:
The database to connect to, specified in a way DBI can understand. This parameter is mandatory!
Username to use to connect to the database.
Password to use to connect to the database.
The table inthe database where posts are stored. When omitted, defaults to posts.
Collect data from our database. The table where we fetch fields from must contain the following columns: title, author, subject, date, id and content.
Gergely Nagy, firstname.lastname@example.org
Bugs should be reported at http://bugs.bonehunter.rulez.org/babble.