Download the PHP package haoa/mix-database without Composer
On this page you can find all versions of the php package haoa/mix-database. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download haoa/mix-database
More information about haoa/mix-database
Files in haoa/mix-database
Download haoa/mix-database
More information about haoa/mix-database
Files in haoa/mix-database
Vendor haoa
Package mix-database
Short Description Simple database for use in multiple execution environments, with support for FPM, Swoole, Workerman, and optional pools
License
Package mix-database
Short Description Simple database for use in multiple execution environments, with support for FPM, Swoole, Workerman, and optional pools
License
Please rate this library. Is it a good library?
Informations about the package mix-database
Installation
Quick start
创建
查询
更新
删除
启动连接池 Pool
在 Swoole
协程环境中,启动连接池
连接池统计
创建 Insert
创建
获取 InsertId
替换创建
批量创建
使用函数创建
查询 Select
获取结果
方法名称 | 描述 |
---|---|
get(): array | 获取多行 |
first(): array or object | 获取第一行 |
value(string $field): mixed | 获取第一行某个字段 |
statement(): \PDOStatement | 获取原始结果集 |
Where
AND
OR
IN
Select
Order
Limit
Group & Having
Join
更新 Update
更新单个字段
获取影响行数
更新多个字段
使用表达式更新
使用函数更新
删除 Delete
删除
获取影响行数
原生 Raw
事务 Transaction
手动事务
自动事务,执行异常自动回滚并抛出异常
调试 Debug
日志 Logger
日志记录器,配置后可打印全部SQL信息
$logger
需实现 Mix\Database\LoggerInterface
License
Apache License Version 2.0, http://www.apache.org/licenses/
All versions of mix-database with dependencies
PHP Build Version
Package Version
The package haoa/mix-database contains the following files
Loading the files please wait ....