NAME

DBIx::MoCo::DataBase - Data Base Handler for DBIx::MoCo

SYNOPSIS

package MyDataBase;
use base qw(DBIx::MoCo::DataBase);

__PACKAGE__->dsn('dbi:mysql:myapp');
__PACKAGE__->username('test');
__PACKAGE__->password('test');

1;

# In your scripts
MyDataBase->execute('select 1');

METHODS

cache_connection

Controlls cache behavior for dbh connection. (default 1) If its set to 0, DBIx::MoCo::DataBase uses DBI->connect instead of DBI->connect_cached.

DBIx::MoCo::DataBase->cache_connection(0);

SEE ALSO

DBIx::MoCo, SQL::Abstract

AUTHOR

Junya Kondo, <jkondo@hatena.com>

COPYRIGHT AND LICENSE

Copyright (C) Hatena Inc. All Rights Reserved.

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

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 226:

'=item' outside of any '=over'

Around line 234:

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