elysiumrealms/sql-interceptor 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-14