Public Member Functions |
| exec ($statement) |
| query ($statement, $mode=NULL, $arg1=NULL, $arg2=NULL) |
| prepare ($statement, $driver_options=array()) |
Detailed Description
This is a special variant of the standard PDO class that does not allow multiple statement execution.
Member Function Documentation
Executes an SQL statement and returns the number of affected rows.
- Parameters
-
- Returns
- int number of affected rows
prepare |
( |
|
$statement, |
|
|
|
$driver_options = array() |
|
) |
| |
Prepares a statement for execution and returns a statement object.
- Parameters
-
- Returns
- object PDOStatement object
query |
( |
|
$statement, |
|
|
|
$mode = NULL , |
|
|
|
$arg1 = NULL , |
|
|
|
$arg2 = NULL |
|
) |
| |
Executes an SQL statement, returning a result set as a statement object.
- Parameters
-
string | SQL statement |
int | fetch mode (optional) |
mixed | fetch mode parameter (see PDOStatement::setFetchMode) |
mixed | fetch mode parameter (see PDOStatement::setFetchMode) |
- Returns
- object PDOStatement object
static replaceStrings |
( |
|
$statement | ) |
|
|
staticprotected |
Replaces all string literals in the statement with placeholders.
- Parameters
-
- Returns
- string modified SQL statement
The documentation for this class was generated from the following file: