| DBD-PO documentation | Contained in the DBD-PO distribution. |
DBD::PO::dr - driver class for DBD::PO
$Id: dr.pm 340 2009-03-01 16:22:05Z steffenw $
$HeadURL: https://dbd-po.svn.sourceforge.net/svnroot/dbd-po/trunk/DBD-PO/lib/DBD/PO/dr.pm $
2.00
do not use
driver class for DBD::PO
none
none
not known
not known
Steffen Winkler
Copyright (c) 2008 - 2009,
Steffen Winkler
<steffenw at cpan.org>.
All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| DBD-PO documentation | Contained in the DBD-PO distribution. |
package DBD::PO::dr; ## no critic (Capitalization) use strict; use warnings; our $VERSION = '2.00'; use DBD::File; use parent qw(-norequire DBD::File::dr); use DBD::PO::Text::PO; my $PV = 0; my $IV = 1; my $NV = 2; ## no critic (PackageVars) our @PO_TYPES = ( $IV, # SQL_TINYINT $IV, # SQL_BIGINT $PV, # SQL_LONGVARBINARY $PV, # SQL_VARBINARY $PV, # SQL_BINARY $PV, # SQL_LONGVARCHAR $PV, # SQL_ALL_TYPES $PV, # SQL_CHAR $NV, # SQL_NUMERIC $NV, # SQL_DECIMAL $IV, # SQL_INTEGER $IV, # SQL_SMALLINT $NV, # SQL_FLOAT $NV, # SQL_REAL $NV, # SQL_DOUBLE ); our $imp_data_size = 0; our $data_sources_attr = (); ## use critic (PackageVars) sub connect { ## no critic (BuiltinHomonyms) my ($drh, $dbname, $user, $auth, $attr) = @_; my $dbh = $drh->SUPER::connect($dbname, $user, $auth, $attr); $dbh->{po_tables} ||= {}; $dbh->{Active} = 1; return $dbh; } 1; __END__