Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
DAOPooling Class Reference
+ Inheritance diagram for DAOPooling:

Static Public Member Functions

static startDatabase (&$config, $offset=null)
 
static getDbOffset (&$config, $offset=null)
 
static initPooling (&$config, $offset=null, int $size=16)
 Initialize pooling (To invoke during Swoole startup)
 
static pool ($offset='default')
 gets a new DbConnection from pool
 
static freePool ($db)
 
static go ($asyncCallable, $offset='default')
 

Static Protected Attributes

static $pool
 

Detailed Description

Definition at line 18 of file DAOPooling.php.

Member Function Documentation

◆ freePool()

static freePool (   $db)
static

Definition at line 62 of file DAOPooling.php.

◆ getDbOffset()

static getDbOffset ( $config,
  $offset = null 
)
staticabstract

Reimplemented in DAO.

◆ go()

static go (   $asyncCallable,
  $offset = 'default' 
)
static

Definition at line 66 of file DAOPooling.php.

◆ initPooling()

static initPooling ( $config,
  $offset = null,
int  $size = 16 
)
static

Initialize pooling (To invoke during Swoole startup)

Parameters
array$config
?string$offset
int$size

Definition at line 32 of file DAOPooling.php.

◆ pool()

static pool (   $offset = 'default')
static

gets a new DbConnection from pool

Parameters
string$offset
Returns
mixed

Definition at line 55 of file DAOPooling.php.

◆ startDatabase()

static startDatabase ( $config,
  $offset = null 
)
staticabstract

Reimplemented in DAO.

Field Documentation

◆ $pool

$pool
staticprotected

Definition at line 23 of file DAOPooling.php.


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