PHP Class yii\db\mssql\PDO

It provides workarounds for improperly implemented functionalities of the MSSQL and DBLIB drivers.
Since: 2.0
Author: Timur Ruziev ([email protected])
Inheritance: extends PDO
Afficher le fichier Open project: yiisoft/yii2

Méthodes publiques

Méthode Description
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.

Method Details

beginTransaction() public méthode

Starts a transaction. It is necessary to override PDO's method as MSSQL PDO driver does not natively support transactions.
public beginTransaction ( ) : boolean
Résultat boolean the result of a transaction start.

commit() public méthode

Commits a transaction. It is necessary to override PDO's method as MSSQL PDO driver does not natively support transactions.
public commit ( ) : boolean
Résultat boolean the result of a transaction commit.

getAttribute() public méthode

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.
Résultat mixed A successful call returns the value of the requested PDO attribute. An unsuccessful call returns null.

lastInsertId() public méthode

Returns value of the last inserted ID.
public lastInsertId ( string | null $sequence = null ) : integer
$sequence string | null the sequence name. Defaults to null.
Résultat integer last inserted ID value.

rollBack() public méthode

Rollbacks a transaction. It is necessary to override PDO's method as MSSQL PDO driver does not natively support transactions.
public rollBack ( ) : boolean
Résultat boolean the result of a transaction roll back.