... $param['dbname'] = substr($param['path'], 0, $pos); $param['table'] = substr($param['path'], $pos + 1); } } // get driver $driver = self::getDriverName($param['scheme']); $class = 'XSDatabase' . ucfirst($driver); if (!class_exists($class)) { throw new XSEx...
...参数, 采用 parse_url 解析, 可能包含: scheme,user,pass,host,path,table,dbname ... 源码: sdk/php/util/XSDataSource.class.php#L428 (显示) abstract public function connect($param); 连接数据库
...ct(array $param) $param array 连接参数, 包含: user,pass,host,table,dbname ... 源码: sdk/php/util/XSDataSource.class.php#L479 (显示) public function connect($param){ $host = isset($param['host']) ? $param['host'] : ini_get('mysql.default_host'); $host .= (isset($param['po...
...ct(array $param) $param array 连接参数, 包含: user,pass,host,table,dbname ... 源码: sdk/php/util/XSDataSource.class.php#L621 (显示) public function connect($param){ $host = isset($param['host']) ? $param['host'] : ini_get('mysqli.default_host'); $user = isset($param['use...
...参数, 采用 parse_url 解析, 可能包含: scheme,user,pass,host,path,table,dbname ... 源码: sdk/php/util/XSDataSource.class.php#L428 (显示) abstract public function connect($param); 连接数据库 query() 方法 abstract public mixed query($sql) $sql {retur...
...ct(array $param) $param array 连接参数, 包含: user,pass,host,table,dbname ... 源码: sdk/php/util/XSDataSource.class.php#L621 (显示) public function connect($param){ $host = isset($param['host']) ? $param['host'] : ini_get('mysqli.default_host'); $user = isset($param['use...
...ct(array $param) $param array 连接参数, 包含: user,pass,host,table,dbname ... 源码: sdk/php/util/XSDataSource.class.php#L479 (显示) public function connect($param){ $host = isset($param['host']) ? $param['host'] : ini_get('mysql.default_host'); $host .= (isset($param['po...