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
파일 보기 프로젝트 열기: yiisoft/yii2

공개 메소드들

메소드 설명
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.