Method |
Description |
|
__construct ( Doctrine\DBAL\Connection $connection ) |
|
|
affected_rows ( ) : integer |
Get affected rows count |
|
createDatabase ( string $database ) : void |
Create a new database |
|
errorMsg ( ) : string |
Fetch extended error information associated with the last database operation. |
|
escape ( mixed $value ) : string |
Escape value |
|
escapeIdentifier ( string $identifier ) : string |
Escape identifier |
|
escapeKeyVal ( string $key, string $val ) : string |
Escape column equals value statement |
|
escapeOperation ( array $operation ) : string |
Escape comparison operation |
|
execute ( string $sql, $params = [] ) : null |
Execute sql statement |
|
executeUpdate ( string $sql ) : integer |
Execute INSERT/UPDATE/DELETE statement and return number of affected rows |
|
getAll ( string $sql, array $params = [] ) : array |
Execute sql query and return the result as an array |
|
getCol ( string $sql, array $params = [] ) : array |
Execute sql query and returns all elements of the first column. |
|
getDriverName ( ) : string |
Get driver name |
|
getOne ( string $sql, array $params = [] ) : mixed |
Execute sql query and returns the value of first column of the first row. |
|
getRow ( string $sql, array $params = [] ) : array |
Execute sql query and return first row of the result as an associative array. |
|
hasDatabase ( string $database ) : boolean |
Test if there is a database with given name |
|
hasTable ( string $table ) : boolean |
Test if there is a table with given name |
|
insert_id ( ) : integer |
Get last insert id |
|
isConnected ( boolean $forceConnection = false ) : boolean |
Test if is connected |
|
selectLimit ( string $sql, integer $limit, integer $offset ) : mixed |
Performs select with given limit and offset params |
|