easydot/batch-update
最新稳定版本:v1.0.0
Composer 安装命令:
composer require easydot/batch-update
包简介
Batch Update
README 文档
README
Update batch rows in one query!
Support
laravel
Install
composer require easydot/batch-update
Base Usage
(new UpdateBatch('table_name', $batchArrayData))->run(); # Specify primary key (new UpdateBatch('table_name', $batchArrayData, 'primary_key'))->run(); # Add filter where (new UpdateBatch('table_name', $batchArrayData, 'primary_key')) ->where('type', '=', $this->tmpOfferType) ->run(); # Support where (new UpdateBatch('table_name', $batchArrayData, 'primary_key')) ->where('type', '=', $this->tmpOfferType) ->run(); # Support whereIn (new UpdateBatch('table_name', $batchArrayData, 'primary_key')) ->whereIn('id', [1, 2, 3]) ->run(); # Another methods (new UpdateBatch('table_name')) ->multipleData($batchDataToUpdate) ->referenceColumn('primary_id') ->run();
统计信息
- 总下载量: 21
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-06