FOSSology
3.2.0rc1
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
__construct ($dbConnection) | |
prepare ($statementName, $sqlStatement) | |
execute ($statementName, $parameters) | |
query ($sqlStatement) | |
isConnected () | |
getLastError () | |
freeResult ($res) | |
fetchArray ($res) | |
fetchAll ($res) | |
begin () | |
commit () | |
rollback () | |
booleanFromDb ($booleanValue) | |
booleanToDb ($booleanValue) | |
escapeString ($string) | |
existsTable ($tableName) | |
existsColumn ($tableName, $columnName) | |
insertPreparedAndReturn ($stmt, $sql, $params, $colName) | |
Private Member Functions | |
identifierHash ($stmt) | |
PostgreSQL uses no more than NAMEDATALEN-1 characters of an identifier; hence long statementNames needs to be hashed to be shorter and do not collide due to equivalence of truncated strings. More... | |
Private Attributes | |
$dbConnection | |
Definition at line 24 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::begin | ( | ) |
Fossology\Lib\Db\Driver\Postgres::booleanFromDb | ( | $booleanValue | ) |
$booleanValue |
Implements Fossology\Lib\Db\Driver.
Definition at line 159 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::booleanToDb | ( | $booleanValue | ) |
boolean | $booleanValue |
Implements Fossology\Lib\Db\Driver.
Definition at line 168 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::commit | ( | ) |
Fossology\Lib\Db\Driver\Postgres::escapeString | ( | $string | ) |
string |
Implements Fossology\Lib\Db\Driver.
Definition at line 177 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::execute | ( | $statementName, | |
$parameters | |||
) |
string | $statementName | |
array | $parameters |
Implements Fossology\Lib\Db\Driver.
Definition at line 68 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::existsColumn | ( | $tableName, | |
$columnName | |||
) |
$tableName | |
$columnName |
Implements Fossology\Lib\Db\Driver.
Definition at line 211 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::existsTable | ( | $tableName | ) |
string | $tableName |
Implements Fossology\Lib\Db\Driver.
Definition at line 187 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::fetchAll | ( | $res | ) |
ressource |
Implements Fossology\Lib\Db\Driver.
Definition at line 120 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::fetchArray | ( | $res | ) |
ressource |
Implements Fossology\Lib\Db\Driver.
Definition at line 111 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::freeResult | ( | $res | ) |
ressource |
Implements Fossology\Lib\Db\Driver.
Definition at line 102 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::getLastError | ( | ) |
|
private |
PostgreSQL uses no more than NAMEDATALEN-1 characters of an identifier; hence long statementNames needs to be hashed to be shorter and do not collide due to equivalence of truncated strings.
string | $stmt |
Definition at line 40 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::insertPreparedAndReturn | ( | $stmt, | |
$sql, | |||
$params, | |||
$colName | |||
) |
string | $stmt | |
string | $sql | |
array | $params | |
string | $colName |
Implements Fossology\Lib\Db\Driver.
Definition at line 237 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::isConnected | ( | ) |
Fossology\Lib\Db\Driver\Postgres::prepare | ( | $statementName, | |
$sqlStatement | |||
) |
string | $statementName | |
string | $sqlStatement |
Implements Fossology\Lib\Db\Driver.
Definition at line 58 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::query | ( | $sqlStatement | ) |
string | $sqlStatement |
Implements Fossology\Lib\Db\Driver.
Definition at line 77 of file Postgres.php.
Fossology\Lib\Db\Driver\Postgres::rollback | ( | ) |