Definition at line 37 of file SqlSlaveThread.php.
◆ addQuery()
addQuery |
( |
int |
$queryId, |
|
|
int |
$mode, |
|
|
string |
$query, |
|
|
array |
$params |
|
) |
| |
Adds a query to the queue.
- Parameters
-
int | $queryId | |
int | $mode | |
string | $query | |
| mixed[] | $params |
Implements SqlThread.
Definition at line 106 of file SqlSlaveThread.php.
◆ close()
◆ connCreated()
Checks if the initial connection has been made, no matter successful or not.
- Returns
- bool
Implements SqlThread.
Definition at line 121 of file SqlSlaveThread.php.
◆ createConn()
createConn |
( |
& |
$resource | ) |
|
|
abstractprotected |
◆ executeQuery()
executeQuery |
( |
|
$resource, |
|
|
int |
$mode, |
|
|
string |
$query, |
|
|
array |
$params |
|
) |
| |
|
abstractprotected |
- Parameters
-
mixed | $resource | |
int | $mode | |
string | $query | |
| mixed[] | $params |
- Returns
- SqlResult
- Exceptions
-
◆ getConnError()
◆ hasConnError()
◆ isWorking()
Returns true if this thread is working, false if waiting for requests
- Returns
- bool
Definition at line 94 of file SqlSlaveThread.php.
◆ quit()
◆ readResults()
readResults |
( |
array & |
$callbacks | ) |
|
◆ run()
◆ stopRunning()
Signals the thread to stop waiting for queries when the send buffer is cleared.
Implements SqlThread.
Definition at line 98 of file SqlSlaveThread.php.
◆ $bufferRecv
◆ $bufferSend
◆ $connCreated
◆ $connError
◆ $slaveNumber
◆ $working
The documentation for this class was generated from the following file: