承接 bogdanghervan/irradiate 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bogdanghervan/irradiate

Composer 安装命令:

composer require bogdanghervan/irradiate

包简介

Database wizardry on top of Laravel excellence.

README 文档

README

Database wizardry on top of Laravel excellence. This package comes with some goodies to work with data in bulk in Laravel, however it is incomplete since it only implements the MySQL and SQLite grammars (contribute).

Features

Bulk insert or update

This is achieved using INSERT ... ON DUPLICATE KEY UPDATE for MySQL and INSERT ... ON CONFLICT DO UPDATE for SQLite.

Buffered inserts

A service is provided that collects data in memory and flushes it to database when a threshold is reached.

Legacy features

  • Chunk results and use limit at the same time
  • (MySQL only) Retry starting database transaction when connection is lost (no longer necessary in newer Laravel versions)

Installation

Simply run this from the root of your Laravel project:

composer require bogdanghervan/irradiate

Compatibility

This package supports Laravel 6, 7, 8, 9, 10, 11, and 12.

Configuration

To start using the package within Laravel, add this to the list of providers in config/app.php:

'Irradiate\Database\DatabaseServiceProvider',

Or, for Laravel 5.5 and above (including Laravel 12), the package will be auto-discovered.

Additionally, all the models should inherit from \Irradiate\Database\Eloquent\Model. Ideally there should already be a generic base model at the application level that all concrete models extend from, so make that extend the base model within Irradiate.

You're good to go!

Limitations

MySQL and SQLite only.

Contributing

Pull requests are welcome. All contributions should follow the PSR-2 coding standard.

License

Irradiate is licensed under the MIT License.

统计信息

  • 总下载量: 6.54k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-07-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固