Download the PHP package workbunny/storage without Composer
On this page you can find all versions of the php package workbunny/storage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download workbunny/storage
More information about workbunny/storage
Files in workbunny/storage
Download workbunny/storage
More information about workbunny/storage
Files in workbunny/storage
Vendor workbunny
Package storage
Short Description A lightweight storage for PHP based on sqlite3.
License MIT
Homepage https://github.com/workbuunny
Package storage
Short Description A lightweight storage for PHP based on sqlite3.
License MIT
Homepage https://github.com/workbuunny
Please rate this library. Is it a good library?
Informations about the package storage
workbunny/storage
🐇 A lightweight storage for PHP based on sqlite3 🐇
说明
- 创建连接
:memory: 内存数据库最好用作临时数据库
- 注册执行回调
每次SQL执行完后会触发执行回调
- 执行
在执行大SQL语句时,预处理执行的耗时比较长
-
建表
- 建表且建立索引
过多的索引会影响数据插入
-
删除表
- 插入
尽可能的避免插入多条,插入多条可能会拼接成一个大SQL,导致SQL超出范围或是预处理执行耗时过高; 在事务内循环插入是个好的替代方案;
- 事务
使用 action() 时,回调函数内返回false或者抛出异常都可中断事务并回滚
All versions of storage with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-sqlite3 Version *
ext-sqlite3 Version *
The package workbunny/storage contains the following files
Loading the files please wait ....