This commit is contained in:
2021-03-08 18:52:25 +08:00
parent a2542b7ba1
commit 098b33c672
3 changed files with 27 additions and 16 deletions
+5 -2
View File
@@ -199,10 +199,12 @@ class Connection extends Component
/**
* @return \Snowflake\Pool\Connection
* @throws ComponentException
* @throws NotFindClassException
* @throws ReflectionException
*/
private function connections(): \Snowflake\Pool\Connection
{
return Snowflake::app()->getConnections();
return Snowflake::app()->getMysqlFromPool();
}
@@ -286,8 +288,9 @@ class Connection extends Component
/**
* 临时回收
* @throws ComponentException
* @throws NotFindClassException
* @throws ReflectionException
*/
public function recovery()
{