elysiumrealms/sql-interceptor
最新稳定版本:v1.0.4
Composer 安装命令:
composer require elysiumrealms/sql-interceptor
包简介
SQL Interceptor for Laravel
关键字:
README 文档
README
Description
SQLInterceptor is a tool for intercepting SQL queries. It can be used to perform a dry-run and capture SQL queries being executed within a closure.
Features
-
Intercept SQL queries
use Elysiumrealms\SQLInterceptor\SQLInterceptor; class TaskExcelExporter extends AbstractExporter { public function export() { $queries = SQLInterceptor::intercept(function () { // Complex logic which fetch from database connection // and cannot be pass into Laravel Job })->queries(); // Pass into Laravel Job execyte async dispatch(new AsyncQueryJob($queries)); } }
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-03-14