数据库驱动增加getExplain方法用于性能分析

This commit is contained in:
thinkphp
2016-02-01 10:07:48 +08:00
parent 35be826195
commit f6b2b3528e
6 changed files with 68 additions and 9 deletions

View File

@@ -176,4 +176,14 @@ class Sqlsrv extends Driver
return $this->execute($sql, $this->getBindParams(true), !empty($options['fetch_sql']) ? true : false);
}
/**
* SQL性能分析
* @access protected
* @param string $sql
* @return array
*/
protected function getExplain($sql)
{
}
}