Peter Sergeant > Infobot-0.91_05 > Infobot::Plugin::DataSource::DBIxClass

Download:
Infobot-0.91_05.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

Infobot::Plugin::DataSource::DBIxClass - Simple reusable interface to DBIx::Class

DESCRIPTION ^

Stashes a DBIx::Class::Schema::Loader object somewhere sensible for easy connections to databases

CONFIGURATION EXAMPLE ^

 datasource:
 ...
    'DBIxClass':
        class : Infobot::Plugin::DataSource::DBIxClass
        alias : dbix
        extras:
           dsn  : dbi:SQLite:brains/factoids.db
           user : abc
           pass : cba

CONFIGURATION OPTIONS ^

alias

Where to stash this. As you can have connections to more than one database, this is useful for differentiating.

extras

dsn, user, pass as per database connections.

AUTHOR ^

Pete Sergeant -- pete@clueball.com

LICENSE ^

Copyright Pete Sergeant.

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