perl6/DBIish/lib/DBDish

DBIish src

DESCRIPTION

The DBDish module contains generic code that should be re-used by every database driver, and documentation guidelines for DBD implementation. It is also an experiment in distributing Pod fragments in and around the code. Without syntax highlighting, it is very awkward to work with. It shows that this style of file layout is unsuitable for general use.

ROLES

(head2) role DBDish::ErrorHandling
A role that handles the errors from connection handles and statement handles
(head3) Attributes
(head4) C
Errors are printed to the standard error handle if this is True
(head4) C
Errors raise exceptions if this is True
(head3) Methods
(head4) errstr
Returns the string representation of the last error
(head4) !set_errstr
Private method that sets the error string, and prints and/or raises an exception, depending on the $.PrintError and $.RaiseError flags.
(head4) !reset_errstr
Resets the error string to the empty string.
(head2) role DBDish::StatementHandle
The Connection prepare method returns a StatementHandle object that mainly provides the execute and finish methods. It also has all the methods from DBDish::ErrorHandling .
(head2) role DBDish::Connection
Does the DBDish::ErrorHandling role.
(head4) instance variables
(head4) methods
(head5) do
(head5) quote-identifier
Returns the string parameter as a quoted identifier
(head5) disconnect
The disconnect method

SEE ALSO

The Perl 5 L<DBI::DBD>.

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: