PDO wrapper.
More...
|
| | begin () |
| |
| | rollback () |
| |
| | commit () |
| |
| | type ($val) |
| |
| | value ($type, $val) |
| |
| | exec ($cmds, $args=NULL, $ttl=0, $log=TRUE) |
| |
| | count () |
| |
| | log () |
| |
| | schema ($table, $fields=NULL, $ttl=0) |
| |
| | quote ($val, $type=\PDO::PARAM_STR) |
| |
| | uuid () |
| |
| | pdo () |
| |
| | driver () |
| |
| | version () |
| |
| | name () |
| |
| | quotekey ($key) |
| |
| | __call ($func, array $args) |
| |
| | __construct ($dsn, $user=NULL, $pw=NULL, array $options=NULL) |
| |
| DB\SQL::__construct |
( |
|
$dsn, |
|
|
|
$user = NULL, |
|
|
|
$pw = NULL, |
|
|
array |
$options = NULL |
|
) |
| |
Instantiate class
- Parameters
-
| $dsn | string |
| $user | string |
| $pw | string |
| $options | array |
| DB\SQL::__call |
( |
|
$func, |
|
|
array |
$args |
|
) |
| |
Redirect call to MongoDB object
- Returns
- mixed
- Parameters
-
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
Return parent object
- Returns
- object
| 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
| DB\SQL::value |
( |
|
$type, |
|
|
|
$val |
|
) |
| |
Cast value to PHP type
- Returns
- scalar
- Parameters
-
Return server version
- Returns
- string
The documentation for this class was generated from the following file: