ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/PApp-SQL/SQL.pm
(Generate patch)

Comparing PApp-SQL/SQL.pm (file contents):
Revision 1.40 by root, Mon Feb 13 05:59:55 2012 UTC vs.
Revision 1.41 by root, Thu Apr 11 02:20:42 2013 UTC

101 101
102(not exported by by default) 102(not exported by by default)
103 103
104Connect to the database given by C<($dsn,$user,$pass)>, while using the 104Connect to the database given by C<($dsn,$user,$pass)>, while using the
105flags from C<$flags>. These are just the same arguments as given to 105flags from C<$flags>. These are just the same arguments as given to
106C<DBI->connect>. 106C<< DBI->connect >>.
107 107
108The database handle will be cached under the unique id 108The database handle will be cached under the unique id
109C<$id|$dsn|$user|$pass>. If the same id is requested later, the 109C<$id|$dsn|$user|$pass>. If the same id is requested later, the
110cached handle will be checked (using ping), and the connection will 110cached handle will be checked (using ping), and the connection will
111be re-established if necessary (be sure to prefix your application or 111be re-established if necessary (be sure to prefix your application or
183database handle in C<$PApp::SQL::DBH>, which you can set before calling 183database handle in C<$PApp::SQL::DBH>, which you can set before calling
184these functions. 184these functions.
185 185
186=end comment 186=end comment
187 187
188The actual return value from the C<$sth->execute> call is stored in the 188The actual return value from the C<< $sth->execute >> call is stored in
189package-global (and exported) variable C<$sql_exec>. 189the package-global (and exported) variable C<$sql_exec>.
190 190
191If any error occurs C<sql_exec> will throw an exception. 191If any error occurs C<sql_exec> will throw an exception.
192 192
193C<sql_uexec> is similar to C<sql_exec> but upgrades all input arguments to 193C<sql_uexec> is similar to C<sql_exec> but upgrades all input arguments to
194UTF-8 before calling the C<execute> method. 194UTF-8 before calling the C<execute> method.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines