connect() 方法 public void connect(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.defa...
connect() 方法 public void connect(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.def...
...描述定义于 close() 关闭数据库连接 XSDatabaseMySQL connect() 连接数据库 XSDatabaseMySQL query() 执行 SQL 语句查询 XSDatabaseMySQL query1() 查询数据库首行 XSDatabase setUtf8() 将输出字符集设置为 UTF-8 XSDatabaseMySQL ...
...描述定义于 close() 关闭数据库连接 XSDatabaseMySQLI connect() 连接数据库 XSDatabaseMySQLI query() 执行 SQL 语句查询 XSDatabaseMySQLI query1() 查询数据库首行 XSDatabase setUtf8() 将输出字符集设置为 UTF-8 XSDatabaseMySQLI ...
...caught SIGINT, shutdown gracefully 2011-12-01 22:21:07 worker1[5106] NULL connection pointer received, server quit gracefully 2011-12-01 22:21:07 worker1[5106] event server end 2011-12-01 22:21:07 worker1[5106] deinit the thread pool 2011-12-01 22:21:07 worker2[5107] caught SIGINT, shutdown grac...
..., 2210, Array) #1 /usr/local/xunsearch/sdk/php/lib/XS.php(2030): XSServer->connect(NULL, true) #2 /usr/local/xunsearch/sdk/php/lib/XS.php(2016): XSServer->open() #3 /usr/local/xunsearch/sdk/php/lib/XS.php(344): XSServer->__construct('8383') #4 /usr/local/xunsearch/sdk/php/lib/XS.php(251): XS->getInd...
...述定义于 check() 检测服务端的连接情况 XSServer connect() 连接服务端 XSServer read() 读取数据 XSServer write() 写入数据 XSServer 属性明细 _conn 属性 protected $_conn; _flag 属性 protected $_flag; _project 属...
...口, user='用户名', passwd='密码', db='数据库名') _db = _pool.connection() _cur = _db.cursor() while 1: _cur.execute('select * from mq order by mid asc limit 10') _rows = _cur.fetchall() for row in _rows: url = 'http://http接口地址/' ...