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.11 by root, Sat Feb 10 01:28:26 2001 UTC vs.
Revision 1.13 by root, Sun Feb 18 04:50:58 2001 UTC

43use DBI (); 43use DBI ();
44 44
45BEGIN { 45BEGIN {
46 use base qw(Exporter DynaLoader); 46 use base qw(Exporter DynaLoader);
47 47
48 $VERSION = 0.12; 48 $VERSION = 0.121;
49 @EXPORT = qw( 49 @EXPORT = qw(
50 sql_exec sql_fetch sql_fetchall sql_exists sql_insertid $sql_exec 50 sql_exec sql_fetch sql_fetchall sql_exists sql_insertid $sql_exec
51 ); 51 );
52 @EXPORT_OK = qw( 52 @EXPORT_OK = qw(
53 connect_cached 53 connect_cached
228 228
229=item sql_exists "<table> where ...", args... 229=item sql_exists "<table> where ...", args...
230 230
231Check wether the result of the sql-statement "select xxx from 231Check wether the result of the sql-statement "select xxx from
232$first_argument" would be empty or not (that is, imagine the string 232$first_argument" would be empty or not (that is, imagine the string
233"select from" were prepended to your statement (it isn't)). Should work 233"select * from" were prepended to your statement (it isn't)). Should work
234with every database but can be quite slow, except on mysql, where this 234with every database but can be quite slow, except on mysql, where this
235should be quite fast. 235should be quite fast.
236 236
237Examples: 237Examples:
238 238

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines