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

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

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

Метод Описание
__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.

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

__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 )