This commit is contained in:
2020-09-17 13:56:57 +08:00
parent 06ba4acd51
commit 6f8e024fae
11 changed files with 77 additions and 64 deletions
+12
View File
@@ -101,6 +101,18 @@ class Connection extends Component
return $this->getPdo($sql);
}
/**
* 初始化 Channel
*/
public function fill()
{
$connections = Snowflake::app()->connections;
$connections->initConnections($this->cds, true, $this->maxNumber);
$connections->initConnections($this->slaveConfig['cds'], false, $this->maxNumber);
}
/**
* @param $sql
* @return PDO