You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
14
extend/app_alipay/lotusphp_runtime/DB/QueryEngine/SqlMap/DbSqlMapClient.php
Executable file
14
extend/app_alipay/lotusphp_runtime/DB/QueryEngine/SqlMap/DbSqlMapClient.php
Executable file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
class LtDbSqlMapClient
|
||||
{
|
||||
public $configHandle;
|
||||
public $dbh;
|
||||
|
||||
public function execute($mapId, $bind = null)
|
||||
{
|
||||
$sqlMap = $this->configHandle->get($this->dbh->group . "." . $mapId);
|
||||
$forceUseMaster = isset($sqlMap["force_use_master"]) ? $sqlMap["force_use_master"] : false;
|
||||
return $this->dbh->query($sqlMap["sql"], $bind, $forceUseMaster);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user