PHP Класс Nette\Database\Drivers\PgSqlDriver

Наследование: extends Nette\Object, implements Nette\Database\ISupplementalDriver
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Connection $connection, array $options )
applyLimit ( &$sql, $limit, $offset ) Injects LIMIT/OFFSET to the SQL query.
convertException ( PDOException $e )
delimite ( $name ) Delimites identifier for use in a SQL statement.
formatBool ( $value ) Formats boolean for use in a SQL statement.
formatDateInterval ( DateInterval $value ) Formats date-time interval for use in a SQL statement.
formatDateTime ( $value ) Formats date-time for use in a SQL statement.
formatLike ( $value, $pos ) Encodes string for use in a LIKE statement.
getColumnTypes ( PDOStatement $statement ) Returns associative array of detected types (IReflection::FIELD_*) in result set.
getColumns ( $table ) Returns metadata for all columns in a table.
getForeignKeys ( $table ) Returns metadata for all foreign keys in a table.
getIndexes ( $table ) Returns metadata for all indexes in a table.
getTables ( ) Returns list of tables.
isSupported ( $item ) : boolean
normalizeRow ( $row ) Normalizes result row.

Приватные методы

Метод Описание
delimiteFQN ( $name ) : string Converts: schema.name => "schema"."name"

Описание методов

__construct() публичный Метод

public __construct ( Connection $connection, array $options )
$connection Nette\Database\Connection
$options array

applyLimit() публичный Метод

Injects LIMIT/OFFSET to the SQL query.
public applyLimit ( &$sql, $limit, $offset )

convertException() публичный Метод

public convertException ( PDOException $e )
$e PDOException

delimite() публичный Метод

Delimites identifier for use in a SQL statement.
public delimite ( $name )

formatBool() публичный Метод

Formats boolean for use in a SQL statement.
public formatBool ( $value )

formatDateInterval() публичный Метод

Formats date-time interval for use in a SQL statement.
public formatDateInterval ( DateInterval $value )
$value DateInterval

formatDateTime() публичный Метод

Formats date-time for use in a SQL statement.
public formatDateTime ( $value )

formatLike() публичный Метод

Encodes string for use in a LIKE statement.
public formatLike ( $value, $pos )

getColumnTypes() публичный Метод

Returns associative array of detected types (IReflection::FIELD_*) in result set.
public getColumnTypes ( PDOStatement $statement )
$statement PDOStatement

getColumns() публичный Метод

Returns metadata for all columns in a table.
public getColumns ( $table )

getForeignKeys() публичный Метод

Returns metadata for all foreign keys in a table.
public getForeignKeys ( $table )

getIndexes() публичный Метод

Returns metadata for all indexes in a table.
public getIndexes ( $table )

getTables() публичный Метод

Returns list of tables.
public getTables ( )

isSupported() публичный Метод

public isSupported ( $item ) : boolean
Результат boolean

normalizeRow() публичный Метод

Normalizes result row.
public normalizeRow ( $row )