- or download this
package My::DBI::Config;
use base qw/Class::DBI/;
My::DBI::Config->set_db { ...
- or download this
package My::DBI;
use base qw(My::DBI::Config);
- or download this
Give it a database connection
Class::DBI needs to know how to access the database. It do
+es this
...
By setting the connection up in your application base class
+ all the
table classes that inherit from it will share the same conn
+ection.