PHP Класс yii\db\mssql\PDO

It provides workarounds for improperly implemented functionalities of the MSSQL and DBLIB drivers.
С версии: 2.0
Автор: Timur Ruziev ([email protected])
Наследование: extends PDO
Показать файл Открыть проект

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

Метод Описание
beginTransaction ( ) : boolean Starts a transaction. It is necessary to override PDO's method as MSSQL PDO driver does not natively support transactions.
commit ( ) : boolean Commits a transaction. It is necessary to override PDO's method as MSSQL PDO driver does not natively support transactions.
getAttribute ( integer $attribute ) : mixed Retrieve a database connection attribute.
lastInsertId ( string | null $sequence = null ) : integer Returns value of the last inserted ID.
rollBack ( ) : boolean Rollbacks a transaction. It is necessary to override PDO's method as MSSQL PDO driver does not natively support transactions.

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

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

Starts a transaction. It is necessary to override PDO's method as MSSQL PDO driver does not natively support transactions.
public beginTransaction ( ) : boolean
Результат boolean the result of a transaction start.

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

Commits a transaction. It is necessary to override PDO's method as MSSQL PDO driver does not natively support transactions.
public commit ( ) : boolean
Результат boolean the result of a transaction commit.

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

It is necessary to override PDO's method as some MSSQL PDO driver (e.g. dblib) does not support getting attributes
public getAttribute ( integer $attribute ) : mixed
$attribute integer One of the PDO::ATTR_* constants.
Результат mixed A successful call returns the value of the requested PDO attribute. An unsuccessful call returns null.

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

Returns value of the last inserted ID.
public lastInsertId ( string | null $sequence = null ) : integer
$sequence string | null the sequence name. Defaults to null.
Результат integer last inserted ID value.

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

Rollbacks a transaction. It is necessary to override PDO's method as MSSQL PDO driver does not natively support transactions.
public rollBack ( ) : boolean
Результат boolean the result of a transaction roll back.