
Oak::IO::DBI - IO routines to exchange data with databases using DBI

This module provides access for exchange data with databases using DBI.


DBI datasorce string, used to create the connection. See perldoc DBI for more information.
DBI options. See DBI documentation for more help.

When a connection is openned
When a sql is executed
When the database is explicitly disconnected (not on DESTROY)

Register the connection for this object. Generates an ev_onConnect event.
Could raise the Oak::IO::DBI::Error::ConnectionFailure exception.
Prepare, executes and test if successfull. Returns the Sth. Generates an ev_onSql event (passes $sql and $sth to the function called).
Could rause the following exceptions: Oak::Filer::DBI::Error::SQLSyntaxError and Oak::Filer::DBI::Error::SQLExecuteError
Quotes a string, using DBI->quote unless empty, else uses "''".
Returns the DBI object.
Called by DESTROY, releases the DBI connection. It disconnects. Generates a ev_onDisconnect event.
Calls the method with the same name at DBI.

This class is used in the register_connection when it fails
This class is raised when the sql has wrong syntax
This class is raised when the sql has an error while executing

Copyright (c) 2001 Daniel Ruoso <daniel@ruoso.com> and Rodolfo Sikora <rodolfo@trevas.net>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.