* Add config to control enable SQLite or not.

This commit is contained in:
zhouxin
2023-06-27 13:40:41 +08:00
parent 409e7d4d95
commit a91bf135dd
2 changed files with 6 additions and 3 deletions
+5 -3
View File
@@ -3888,14 +3888,16 @@ EOT;
}
/**
* Get DAO to access SQLite.
* Get DAO to access SQLite or MySQL.
*
* @param object $params
* @access public
* @return mixed
* @return object
*/
public function getSqliteDAO($params = null)
public function getDAO($params = null)
{
if(!$this->config->db->enableSqlite) return $this->dao;
$dao = clone $this->dao;
$dao->reset();