|
libasynql
3.2.0
Asynchronous MySQL access library for PocketMine plugins.
|
Public Member Functions | |
| join () | |
| stopRunning () | |
| addQuery (int $queryId, int $mode, string $query, array $params) | |
| readResults (array &$callbacks) | |
| connCreated () | |
| hasConnError () | |
| getConnError () | |
Data Fields | |
| const | MODE_GENERIC = 0 |
| const | MODE_CHANGE = 1 |
| const | MODE_INSERT = 2 |
| const | MODE_SELECT = 3 |
Definition at line 25 of file SqlThread.php.
| addQuery | ( | int | $queryId, |
| int | $mode, | ||
| string | $query, | ||
| array | $params | ||
| ) |
Adds a query to the queue.
| int | $queryId | |
| int | $mode | |
| string | $query | |
| mixed[] | $params |
Implemented in SqlSlaveThread, and SqlThreadPool.
| connCreated | ( | ) |
Checks if the initial connection has been made, no matter successful or not.
Implemented in SqlSlaveThread, and SqlThreadPool.
| getConnError | ( | ) |
Gets the error of the initial connection.
Implemented in SqlSlaveThread, and SqlThreadPool.
| hasConnError | ( | ) |
Checks if the initial connection failed.
Implemented in SqlSlaveThread, and SqlThreadPool.
| join | ( | ) |
| readResults | ( | array & | $callbacks | ) |
Handles the results that this query has completed
| callable[] | $callbacks |
Implemented in SqlSlaveThread, and SqlThreadPool.
| stopRunning | ( | ) |
Signals the thread to stop waiting for queries when the send buffer is cleared.
Implemented in SqlSlaveThread, and SqlThreadPool.
| const MODE_CHANGE = 1 |
Definition at line 27 of file SqlThread.php.
| const MODE_GENERIC = 0 |
Definition at line 26 of file SqlThread.php.
| const MODE_INSERT = 2 |
Definition at line 28 of file SqlThread.php.
| const MODE_SELECT = 3 |
Definition at line 29 of file SqlThread.php.