{"repo":"mix-php/database","free":true,"listed":false,"github":"https://github.com/mix-php/database","clone":"git clone https://github.com/mix-php/database.git","description":"Simple database for use in multiple execution environments, with support for FPM, CLI, Swoole, WorkerMan, and optional connection pool (coroutine) / 可在各种环境中使用的轻量数据库，支持 FPM、CLI、Swoole、WorkerMan，可选的连接池 (协程)","language":"PHP","stars":15,"topics":["mix","database","pool","pdo","swoole","workerman"],"license":null,"category":"databases-storage","readme_excerpt":"OpenMix 出品：https://openmix.org Mix Database Simple database for use in multiple execution environments, with support for FPM, CLI, Swoole, WorkerMan, and optional connection pool (coroutine) 可在各种环境中使用的轻量数据库，支持 FPM、CLI、Swoole、WorkerMan，可选的连接池 (协程) 技术交流 知乎：https://www.zhihu.com/people/onanying 官方QQ群：284806582 , 825122875 敲门暗号：db 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/","default_branch":null,"files":null,"tree":[],"storefront":"/r/mix-php","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mix-php/database/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}