1 | =head1 NAME |
1 | =head1 NAME |
2 | |
2 | |
3 | PApp::SQL - absolutely easy yet fast and powerful sql access |
3 | PApp::SQL - absolutely easy yet fast and powerful sql access. |
4 | |
4 | |
5 | =head1 SYNOPSIS |
5 | =head1 SYNOPSIS |
6 | |
6 | |
7 | use PApp::SQL; |
7 | use PApp::SQL; |
8 | |
8 | |
… | |
… | |
123 | Examples: |
123 | Examples: |
124 | |
124 | |
125 | # try your luck opening the papp database without access info |
125 | # try your luck opening the papp database without access info |
126 | $dbh = connect_cached __FILE__, "DBI:mysql:papp"; |
126 | $dbh = connect_cached __FILE__, "DBI:mysql:papp"; |
127 | |
127 | |
128 | Mysql-specific behaviour: The default setting of mysql_client_found_rows |
128 | Mysql-specific behaviour: The default setting of |
129 | is TRUE, you can overwrite this, though. |
129 | C<mysql_client_found_rows> is TRUE, you can overwrite this, though. |
130 | |
130 | |
131 | =cut |
131 | =cut |
132 | |
132 | |
133 | sub connect_cached { |
133 | sub connect_cached { |
134 | my ($id, $dsn, $user, $pass, $flags, $connect) = @_; |
134 | my ($id, $dsn, $user, $pass, $flags, $connect) = @_; |