mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-25 17:45:34 +08:00
reset PHPDoc
This commit is contained in:
@@ -33,8 +33,9 @@ class MySQLConnection implements Connection
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param mixed $sql
|
* @param mixed $sql
|
||||||
* @param mixed $options
|
* @param mixed $options
|
||||||
|
* @throws MySQLException
|
||||||
*/
|
*/
|
||||||
public function prepare($sql, $options = [])
|
public function prepare($sql, $options = [])
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ use RuntimeException;
|
|||||||
class MySQLPool
|
class MySQLPool
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var array<string, PoolInterface> 连接池列表
|
* @var array<string, SwooleObjectPool|WorkermanObjectPool> 连接池列表
|
||||||
*/
|
*/
|
||||||
private static $pools = [];
|
private static $pools = [];
|
||||||
|
|
||||||
@@ -51,9 +51,10 @@ class MySQLPool
|
|||||||
/**
|
/**
|
||||||
* 获取一个数据库连接池
|
* 获取一个数据库连接池
|
||||||
*
|
*
|
||||||
* @param string $name 连接池名称
|
* @param string $name 连接池名称
|
||||||
|
* @return SwooleObjectPool|WorkermanObjectPool
|
||||||
*/
|
*/
|
||||||
public static function pool(string $name): PoolInterface
|
public static function pool(string $name)
|
||||||
{
|
{
|
||||||
if (!isset(self::$pools[$name])) {
|
if (!isset(self::$pools[$name])) {
|
||||||
throw new RuntimeException("Pool {$name} not found");
|
throw new RuntimeException("Pool {$name} not found");
|
||||||
|
|||||||
Reference in New Issue
Block a user