【文件属性】:
文件名称:mysql:守护程序的长期MySQL连接
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-26 21:58:17
mysql PHP
Workerman \ Mysql \ Connection
守护程序的长期MySQL连接。
安装
composer require workerman/mysql
用法
$ db = new Workerman \ MySQL \ Connection ( $ mysql_host , $ mysql_port , $ user , $ password , $ db_bname );
// Get all rows.
$ db1 -> select ( 'ID,Sex' )-> from ( 'Persons' )-> where ( 'sex= :sex' )-> bindValues ( array ( 'sex' => 'M' ))-> query ();
// Equivalent to.
$ db1 -> select ( 'ID,Sex' )-> from ( 'Pe
【文件预览】:
mysql-master
----src()
--------Connection.php(43KB)
----composer.json(413B)
----README.md(3KB)