close() 方法 public void close() 源码: sdk/php/util/XSDataSource.class.php#L569 (显示) public function close(){ if (is_resource($this->link)) { pg_close($this->link); $this->link = null; }} 关闭数据库连接
...ception('SQLITE ERROR: ' . sqlite_error_string($this->link)); } if (!is_resource($res)) { $ret = $res; } else { $ret = array(); while ($tmp = sqlite_fetch_array($res, SQLITE_ASSOC)) { $ret[] = $tmp; } } return $ret;} 执行 SQL 语句查询
...mysql_errno($this->link) . '): ' . mysql_error($this->link)); } if (!is_resource($res)) { $ret = $res; } else { $ret = array(); while ($tmp = mysql_fetch_assoc($res)) { $ret[] = $tmp; } mysql_free_result($res); } return $ret;} 执行 S...
...ception('SQLITE ERROR: ' . sqlite_error_string($this->link)); } if (!is_resource($res)) { $ret = $res; } else { $ret = array(); while ($tmp = sqlite_fetch_array($res, SQLITE_ASSOC)) { $ret[] = $tmp; } } return $ret;} 执行 SQL 语句查询 ...
...util/XSDataSource.class.php#L569 (显示) public function close(){ if (is_resource($this->link)) { pg_close($this->link); $this->link = null; }} 关闭数据库连接 connect() 方法 public void connect($param) $param 源码: sdk/php/util/XSDataSourc...
...mysql_errno($this->link) . '): ' . mysql_error($this->link)); } if (!is_resource($res)) { $ret = $res; } else { $ret = array(); while ($tmp = mysql_fetch_assoc($res)) { $ret[] = $tmp; } mysql_free_result($res); } return $ret;} 执行 S...