/usr/share/php/Nette/Database/ISupplementalDriver.php is in php-nette 2.4-20160731-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | <?php
/**
* This file is part of the Nette Framework (https://nette.org)
* Copyright (c) 2004 David Grudl (https://davidgrudl.com)
*/
namespace Nette\Database;
/**
* Supplemental PDO database driver.
*/
interface ISupplementalDriver
{
const SUPPORT_SEQUENCE = 'sequence',
SUPPORT_SELECT_UNGROUPED_COLUMNS = 'ungrouped_cols',
SUPPORT_MULTI_INSERT_AS_SELECT = 'insert_as_select',
SUPPORT_MULTI_COLUMN_AS_OR_COND = 'multi_column_as_or',
SUPPORT_SUBSELECT = 'subselect',
SUPPORT_SCHEMA = 'schema';
/**
* @return DriverException
*/
function convertException(\PDOException $e);
/**
* Delimites identifier for use in a SQL statement.
* @param string
* @return string
*/
function delimite($name);
/**
* Formats boolean for use in a SQL statement.
* @param bool
* @return mixed
*/
function formatBool($value);
/**
* Formats date-time for use in a SQL statement.
* @return string
*/
function formatDateTime(/*\DateTimeInterface*/ $value);
/**
* Formats date-time interval for use in a SQL statement.
* @return string
*/
//function formatDateInterval(\DateInterval $value);
/**
* Encodes string for use in a LIKE statement.
* @param string
* @param int
* @return string
*/
function formatLike($value, $pos);
/**
* Injects LIMIT/OFFSET to the SQL query.
* @param string SQL query that will be modified.
* @param int|NULL
* @param int|NULL
* @return void
*/
function applyLimit(& $sql, $limit, $offset);
/**
* Normalizes result row.
* @param array
* @return array
*/
function normalizeRow($row);
/********************* reflection ****************d*g**/
/**
* Returns list of tables.
* @return array of [name [, (bool) view]]
*/
function getTables();
/**
* Returns metadata for all columns in a table.
* @param string
* @return array of [name, nativetype, primary [, table, fullname, (int) size, (bool) nullable, (mixed) default, (bool) autoincrement, (array) vendor]]
*/
function getColumns($table);
/**
* Returns metadata for all indexes in a table.
* @param string
* @return array of [name, (array of names) columns [, (bool) unique, (bool) primary]]
*/
function getIndexes($table);
/**
* Returns metadata for all foreign keys in a table.
* @param string
* @return array
*/
function getForeignKeys($table);
/**
* Returns associative array of detected types (IStructure::FIELD_*) in result set.
* @param \PDOStatement
* @return array
*/
function getColumnTypes(\PDOStatement $statement);
/**
* Cheks if driver supports specific property
* @param string self::SUPPORT_* property
* @return bool
*/
function isSupported($item);
}
|