libasynql  3.2.0
Asynchronous MySQL access library for PocketMine plugins.
MysqliThread Class Reference
Inheritance diagram for MysqliThread:
SqlSlaveThread SqlThread

Public Member Functions

 __construct (MysqlCredentials $credentials, QuerySendQueue $bufferSend=null, QueryRecvQueue $bufferRecv=null)
 
 getThreadName ()
 
- Public Member Functions inherited from SqlSlaveThread
 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 ()
 

Static Public Member Functions

static createFactory (MysqlCredentials $credentials)
 

Protected Member Functions

 executeQuery ($mysqli, int $mode, string $query, array $params)
 
 close (&$mysqli)
 
- Protected Member Functions inherited from SqlSlaveThread
 createConn (&$resource)
 
 executeQuery ($resource, int $mode, string $query, array $params)
 
 close (&$resource)
 

Additional Inherited Members

- Data Fields inherited from SqlThread
const MODE_GENERIC = 0
 
const MODE_CHANGE = 1
 
const MODE_INSERT = 2
 
const MODE_SELECT = 3
 
- Protected Attributes inherited from SqlSlaveThread
 $slaveNumber
 
 $bufferSend
 
 $bufferRecv
 
 $connCreated = false
 
 $connError
 
 $working = false
 

Detailed Description

Definition at line 54 of file MysqliThread.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( MysqlCredentials  $credentials,
QuerySendQueue  $bufferSend = null,
QueryRecvQueue  $bufferRecv = null 
)

Definition at line 64 of file MysqliThread.php.

Member Function Documentation

◆ close()

close ( $mysqli)
protected

Definition at line 225 of file MysqliThread.php.

◆ createFactory()

static createFactory ( MysqlCredentials  $credentials)
static

Definition at line 58 of file MysqliThread.php.

◆ executeQuery()

executeQuery (   $mysqli,
int  $mode,
string  $query,
array  $params 
)
protected

Definition at line 80 of file MysqliThread.php.

◆ getThreadName()

getThreadName ( )

Definition at line 230 of file MysqliThread.php.


The documentation for this class was generated from the following file: