ideo/transaction
Composer 安装命令:
composer require ideo/transaction
包简介
DB transaction library.
README 文档
README
We will share different transaction implementations for each framework.
When implementing repository patterns for database access, framework specific classes may be exposed in the service layer transaction implementation, but we will prevent that.
The corresponding framework is as follows.
- PDO
- Doctrine DBAL
- Doctrine ORM
- Laravel
- Lumen
Usage
// class corresponding to each framework
$tm = new ...
$tm->beginTransaction();
...
$tm->commit();
Or
// class corresponding to each framework
$tm = new ...
$tm->transactional(function () {
...
});
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2017-11-26