FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Driver.php
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2014 Siemens AG
4  Author: Andreas Würl, Steffen Weber
5 
6  SPDX-License-Identifier: GPL-2.0-only
7 */
8 
9 namespace Fossology\Lib\Db;
10 
11 interface Driver
12 {
13 
19  public function prepare($statementName, $sqlStatement);
20 
26  public function execute($statementName, $parameters);
27 
32  public function query($sqlStatement);
33 
37  public function isConnected();
38 
42  public function getLastError();
43 
48  public function freeResult($res);
49 
54  public function fetchArray($res);
55 
60  public function fetchAll($res);
61 
65  public function begin();
66 
70  public function commit();
71 
75  public function rollback();
76 
81  public function booleanFromDb($booleanValue);
82 
87  public function booleanToDb($booleanValue);
88 
93  public function escapeString($string);
94 
99  public function existsTable($tableName);
100 
106  public function existsColumn($tableName, $columnName);
107 
114  public function insertPreparedAndReturn($stmt, $sql, $params, $colName);
115 }
booleanToDb($booleanValue)
prepare($statementName, $sqlStatement)
insertPreparedAndReturn($stmt, $sql, $params, $colName)
booleanFromDb($booleanValue)
existsColumn($tableName, $columnName)
query($sqlStatement)
execute($statementName, $parameters)