EntityModel::DB - database management
version 0.102
Manages database connections and transactions.
Create a new EntityModel::DB object.
Does not attempt to connect any database handles, but prepares the context ready for the first request.
Returns a database handle.
Can only be called within a transaction.
Data Source string used for connecting to the database.
Currently hardcodes the dbi:Pg: prefix.
Call code within a transaction.
Note that this does not map exactly onto a single database transaction. Nested transactions are supported, using savepoints, and a transaction may cover several active database handles.
Update information
Run a select query against the database and return the results as an orderly hash.
Returns the currently active database handle.
Run the given query.
Internal method used to check whether we've forked recently and if so reset the internal state so that we don't try to reuse existing handles.
clone, dump, sap
Tom Molesworth <cpan@entitymodel.com>
Copyright Tom Molesworth 2008-2011. Licensed under the same terms as Perl itself.
To install EntityModel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm EntityModel
CPAN shell
perl -MCPAN -e shell install EntityModel
For more information on module installation, please visit the detailed CPAN module installation guide.