DBIx::Roles - Roles for DBI handles

The module provides common API for using roles (AKA mixins/interfaces/plugins) on DBI handles. The problem it solves is that there are a lot of interesting and useful "DBIx::" modules on CPAN, that extend the DBI functionality in one or another way, ...

KARASIK/DBIx-Roles-1.04 - 30 Jan 2006 11:02:26 GMT

DBIx::Roles::Hook - Exports callbacks to override DBI calls.

Exports a single attribute "Hooks" that is a hash, where keys are "connect", "disconnect", "any", "rewrite", "dbi_method", "STORE", and values are code references, to be called when the corresponding calls occur....

KARASIK/DBIx-Roles-1.04 - 30 Jan 2006 11:02:26 GMT

DBIx::Roles::Buffered - buffer write-only queries.

Saves do() and selectrow_array() in a buffer, calls these as a single query later. Useful with lots of UPDATES and INSERTS over connections with high latency....

KARASIK/DBIx-Roles-1.04 - 30 Jan 2006 11:02:26 GMT

DBIx::Roles::Transaction - allow nested transactions.

Wraps "begin_work", "rollback", and "commit" calls so that these can be called inside transactions. If an inner transaction calls "rollback", all outer transactions fail. The original idea appeared in DBIx::Transactions by Tyler MacDonald....

KARASIK/DBIx-Roles-1.04 - 30 Jan 2006 11:02:26 GMT

DBIx::Roles::RaiseError - change defaults to < RaiseError = 1 >>

The role replaces the (arguably) most used pair of attributes { RaiseError => 1, PrintError => 0 } to "DBI-> connect()" with the role syntax use DBIx::Roles qw(MyRole1 MyRole2 ... RaiseError); just for beautification sake....

KARASIK/DBIx-Roles-1.04 - 30 Jan 2006 11:02:26 GMT

DBIx::Roles::SQLAbstract - Exports SQL commands insert, select etc as methods.

The role exports SQL commands "insert", "select", "update", "delete" after SQL::Abstract fashion. See SQL::Abstract for syntax of these methods....

KARASIK/DBIx-Roles-1.04 - 30 Jan 2006 11:02:26 GMT

DBIx::Roles::AutoReconnect - restart DBI calls after reconnecting on failure

The role wraps all calls to DBI methods call so that any operation with DB connection handle that fails due to connection break ( server shutdown, tcp reset etc etc), is automatically reconnected. The role is useful when a little more robustness is d...

KARASIK/DBIx-Roles-1.04 - 30 Jan 2006 11:02:26 GMT

DBIx::Roles::StoredProcedures - Treats any method reached AUTOLOAD as a call to a stored procedure.

Useful when database contains many stored procedures....

KARASIK/DBIx-Roles-1.04 - 30 Jan 2006 11:02:26 GMT

DBIx::Roles::Shared - Share DB connection handles

Caches DB handles for already established connections, and returns these when another "connect" call is issued. Serves as a replacement to "DBI-> connect_cached"....

KARASIK/DBIx-Roles-1.04 - 30 Jan 2006 11:02:26 GMT

DBIx::Roles::InlineArray - Flattens arrays passed as parameters to DBI calls into strings.

Recursively straightens array references into {,,}-strings. Useful for DBD implementations that cannot do that themselves...

KARASIK/DBIx-Roles-1.04 - 30 Jan 2006 11:02:26 GMT

10 results (0.012 seconds)