PDO wrapper.
More...
DB\SQL::__construct |
( |
|
$dsn, |
|
|
|
$user = NULL , |
|
|
|
$pw = NULL , |
|
|
array |
$options = NULL |
|
) |
| |
Instantiate class
- Parameters
-
$dsn | string |
$user | string |
$pw | string |
$options | array |
Begin SQL transaction
- Returns
- bool
Commit SQL transaction
- Returns
- bool
Return number of rows affected by last query
- Returns
- int
Return database engine
- Returns
- string
DB\SQL::exec |
( |
|
$cmds, |
|
|
|
$args = NULL , |
|
|
|
$ttl = 0 , |
|
|
|
$log = TRUE |
|
) |
| |
Execute SQL statement(s)
- Returns
- array|int|FALSE
- Parameters
-
$cmds | string|array |
$args | string|array |
$ttl | int |
$log | bool |
Return SQL profiler results
- Returns
- string
Return database name
- Returns
- string
DB\SQL::quote |
( |
|
$val, |
|
|
|
$type = \PDO::PARAM_STR |
|
) |
| |
Quote string
- Returns
- string
- Parameters
-
Return quoted identifier name
- Returns
- string
- Parameters
-
Rollback SQL transaction
- Returns
- bool
DB\SQL::schema |
( |
|
$table, |
|
|
|
$fields = NULL , |
|
|
|
$ttl = 0 |
|
) |
| |
Retrieve schema of SQL table
- Returns
- array|FALSE
- Parameters
-
$table | string |
$fields | array|string |
$ttl | int |
Map data type of argument to a PDO constant
- Returns
- int
- Parameters
-
Return UUID
- Returns
- string
Return server version
- Returns
- string
The documentation for this class was generated from the following file: