\GatewayWorker\LibDb

数据库类

Summary

Methods
Properties
Constants
instance()
close()
closeAll()
No public properties found
No constants found
No protected methods found
$instance
N/A
No private methods found
No private properties found
N/A

Properties

$instance

$instance : array

实例数组

Type

array

Methods

instance()

instance(string  $config_name) : \GatewayWorker\Lib\DbConnection

获取实例

Parameters

string $config_name

Throws

\Exception

Returns

\GatewayWorker\Lib\DbConnection

close()

close(string  $config_name) 

关闭数据库实例

Parameters

string $config_name

closeAll()

closeAll() 

关闭所有数据库实例