libasynql
3.2.0
Asynchronous MySQL access library for PocketMine plugins.
|
Public Member Functions | |
run () | |
isWorking () | |
stopRunning () | |
quit () | |
addQuery (int $queryId, int $mode, string $query, array $params) | |
readResults (array &$callbacks) | |
connCreated () | |
hasConnError () | |
getConnError () | |
Public Member Functions inherited from SqlThread | |
join () | |
Protected Member Functions | |
createConn (&$resource) | |
executeQuery ($resource, int $mode, string $query, array $params) | |
close (&$resource) | |
Protected Attributes | |
$slaveNumber | |
$bufferSend | |
$bufferRecv | |
$connCreated = false | |
$connError | |
$working = false | |
Additional Inherited Members | |
Data Fields inherited from SqlThread | |
const | MODE_GENERIC = 0 |
const | MODE_CHANGE = 1 |
const | MODE_INSERT = 2 |
const | MODE_SELECT = 3 |
Definition at line 37 of file SqlSlaveThread.php.
addQuery | ( | int | $queryId, |
int | $mode, | ||
string | $query, | ||
array | $params | ||
) |
Adds a query to the queue.
int | $queryId | |
int | $mode | |
string | $query | |
mixed[] | $params |
Implements SqlThread.
Definition at line 106 of file SqlSlaveThread.php.
|
abstractprotected |
connCreated | ( | ) |
Checks if the initial connection has been made, no matter successful or not.
Implements SqlThread.
Definition at line 121 of file SqlSlaveThread.php.
|
abstractprotected |
|
abstractprotected |
getConnError | ( | ) |
Gets the error of the initial connection.
Implements SqlThread.
Definition at line 129 of file SqlSlaveThread.php.
hasConnError | ( | ) |
Checks if the initial connection failed.
Implements SqlThread.
Definition at line 125 of file SqlSlaveThread.php.
isWorking | ( | ) |
Returns true if this thread is working, false if waiting for requests
Definition at line 94 of file SqlSlaveThread.php.
quit | ( | ) |
Definition at line 102 of file SqlSlaveThread.php.
readResults | ( | array & | $callbacks | ) |
Handles the results that this query has completed
callable[] | $callbacks |
Implements SqlThread.
Definition at line 110 of file SqlSlaveThread.php.
run | ( | ) |
Definition at line 63 of file SqlSlaveThread.php.
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.
|
protected |
Definition at line 43 of file SqlSlaveThread.php.
|
protected |
Definition at line 42 of file SqlSlaveThread.php.
|
protected |
Definition at line 44 of file SqlSlaveThread.php.
|
protected |
Definition at line 45 of file SqlSlaveThread.php.
|
protected |
Definition at line 41 of file SqlSlaveThread.php.
|
protected |
Definition at line 46 of file SqlSlaveThread.php.