메소드 |
설명 |
|
__construct ( ) |
Dummy constructor to throw an exception |
|
forceError ( ) : boolean |
Creates a database error on the database. |
|
getPoolSize ( ) : integer |
Get pool size for connection pools |
|
getSlave ( ) : boolean |
Returns the address being used by this for slaveOkay reads |
|
getSlaveOkay ( ) : boolean |
Get slaveOkay setting for this connection |
|
lastError ( ) : array | null |
Check if there was an error on the most recent db operation performed |
|
pairConnect ( ) : boolean |
Connects to paired database server |
|
pairPersistConnect ( string $username = "", string $password = "" ) : boolean |
Creates a persistent connection with paired database servers |
|
persistConnect ( string $username = "", string $password = "" ) : boolean |
Creates a persistent connection with a database server |
|
poolDebug ( ) : array |
Returns information about all connection pools. |
|
prevError ( ) : array |
Checks for the last error thrown during a database operation |
|
resetError ( ) : array |
Clears any flagged errors on the connection |
|
setPoolSize ( $size ) : boolean |
Set the size for future connection pools. |
|
setSlaveOkay ( boolean $ok ) : boolean |
Change slaveOkay setting for this connection |
|
switchSlave ( ) : string |
Choose a new secondary for slaveOkay reads |
|