增加接口类 规范驱动扩展

This commit is contained in:
thinkphp
2016-05-05 07:39:05 +08:00
parent 3774e3451a
commit 7a8bb3b54f
33 changed files with 237 additions and 64 deletions

View File

@@ -25,7 +25,7 @@ class Pgsql extends Connection
* @param array $config 连接信息
* @return string
*/
protected function parseDsn($config)
public function parseDsn($config)
{
$dsn = 'pgsql:dbname=' . $config['database'] . ';host=' . $config['hostname'];
if (!empty($config['hostport'])) {
@@ -79,11 +79,11 @@ class Pgsql extends Connection
/**
* SQL性能分析
* @access protected
* @access public
* @param string $sql
* @return array
*/
protected function getExplain($sql)
public function getExplain($sql)
{
return [];
}