Zhamao Framework  3.0.0-beta1
A high-performance chatbot + web framework
DBPool类 参考

静态 Public 成员函数

static create (string $name, array $config)
 
static pool (string $name)
 
static getAllPools ()
 
static destroyPool (string $name)
 
static checkMysqlExtension ()
 

成员函数说明

◆ checkMysqlExtension()

static checkMysqlExtension ( )
static

检查数据库启动必要的依赖扩展,如果不符合要求则抛出异常

异常
DBException
函数调用图:

◆ create()

static create ( string  $name,
array  $config 
)
static

通过配置文件创建一个 MySQL 连接池

异常
DBException
函数调用图:

◆ destroyPool()

static destroyPool ( string  $name)
static

销毁数据库连接池

参数
string$name数据库连接池名称

◆ getAllPools()

static getAllPools ( )
static

获取所有数据库连接池

返回
PoolInterface[]

◆ pool()

static pool ( string  $name)
static

获取一个数据库连接池

参数
string$name连接池名称

该类的文档由以下文件生成: