FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Fossology\Lib\Db\Driver Interface Reference
Inheritance diagram for Fossology\Lib\Db\Driver:
Inheritance graph
Collaboration diagram for Fossology\Lib\Db\Driver:
Collaboration graph

Public Member Functions

 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)
 

Detailed Description

Definition at line 11 of file Driver.php.

Member Function Documentation

◆ begin()

Fossology\Lib\Db\Driver::begin ( )

◆ booleanFromDb()

Fossology\Lib\Db\Driver::booleanFromDb (   $booleanValue)
Parameters
$booleanValue
Returns
boolean

Implemented in Fossology\Lib\Db\Driver\SqliteE, and Fossology\Lib\Db\Driver\Postgres.

◆ booleanToDb()

Fossology\Lib\Db\Driver::booleanToDb (   $booleanValue)
Parameters
boolean$booleanValue
Returns
mixed

Implemented in Fossology\Lib\Db\Driver\SqliteE, and Fossology\Lib\Db\Driver\Postgres.

◆ commit()

Fossology\Lib\Db\Driver::commit ( )

◆ escapeString()

Fossology\Lib\Db\Driver::escapeString (   $string)
Parameters
string
Returns
string

Implemented in Fossology\Lib\Db\Driver\SqliteE, and Fossology\Lib\Db\Driver\Postgres.

◆ execute()

Fossology\Lib\Db\Driver::execute (   $statementName,
  $parameters 
)
Parameters
string$statementName
array$parameters
Returns
resource

Implemented in Fossology\Lib\Db\Driver\SqliteE, and Fossology\Lib\Db\Driver\Postgres.

◆ existsColumn()

Fossology\Lib\Db\Driver::existsColumn (   $tableName,
  $columnName 
)
Parameters
$tableName
$columnName
Returns
bool

Implemented in Fossology\Lib\Db\Driver\SqliteE, and Fossology\Lib\Db\Driver\Postgres.

◆ existsTable()

Fossology\Lib\Db\Driver::existsTable (   $tableName)
Parameters
string$tableName
Returns
bool

Implemented in Fossology\Lib\Db\Driver\SqliteE, and Fossology\Lib\Db\Driver\Postgres.

◆ fetchAll()

Fossology\Lib\Db\Driver::fetchAll (   $res)
Parameters
ressource
Returns
array

Implemented in Fossology\Lib\Db\Driver\SqliteE, and Fossology\Lib\Db\Driver\Postgres.

◆ fetchArray()

Fossology\Lib\Db\Driver::fetchArray (   $res)
Parameters
ressource
Returns
array

Implemented in Fossology\Lib\Db\Driver\SqliteE, and Fossology\Lib\Db\Driver\Postgres.

◆ freeResult()

Fossology\Lib\Db\Driver::freeResult (   $res)
Parameters
ressource
Returns
bool

Implemented in Fossology\Lib\Db\Driver\SqliteE, and Fossology\Lib\Db\Driver\Postgres.

◆ getLastError()

Fossology\Lib\Db\Driver::getLastError ( )

◆ insertPreparedAndReturn()

Fossology\Lib\Db\Driver::insertPreparedAndReturn (   $stmt,
  $sql,
  $params,
  $colName 
)
Parameters
string$stmt
string$sql
array$params
string$colName

Implemented in Fossology\Lib\Db\Driver\SqliteE, and Fossology\Lib\Db\Driver\Postgres.

◆ isConnected()

Fossology\Lib\Db\Driver::isConnected ( )

◆ prepare()

Fossology\Lib\Db\Driver::prepare (   $statementName,
  $sqlStatement 
)
Parameters
string$statementName
string$sqlStatement
Returns
resource

Implemented in Fossology\Lib\Db\Driver\SqliteE, and Fossology\Lib\Db\Driver\Postgres.

◆ query()

Fossology\Lib\Db\Driver::query (   $sqlStatement)
Parameters
string$sqlStatement
Returns
resource

Implemented in Fossology\Lib\Db\Driver\SqliteE, and Fossology\Lib\Db\Driver\Postgres.

◆ rollback()

Fossology\Lib\Db\Driver::rollback ( )

The documentation for this interface was generated from the following file: