数据导出系统

29¥
类型 应用插件
版本 1.0.0
版本更新时间 2023-03-21
大小 40.35 KB
开发商
Chance
评分

问题反馈

https://www.workerman.net/q/11078

详细介绍

数据导出系统

功能特性

  1. 多数据库支持
  2. 原生 SQL 查询导出
  3. 异步队列导出
  4. 支持百万甚至千万数据导出

安装使用

不要直接将代码复制到项目中,在后台插件市场安装

  1. 安装 xlswriter 扩展,未安装将使用 phpoffice/phpspreadsheet 导出,数据量大会内存溢出
  2. 在 webman-admin 后台插件市场安装
  3. 修改配置文件 config/plugin/webman/redis-queue/process.php
    <?php
    return [
    ...
    // 增加以下配置
    'consumer_export' => [
        'handler' => Webman\RedisQueue\Process\Consumer::class,
        'count' => 5, // 可以设置多进程同时消费
        'constructor' => [
            // 消费者类目录
            'consumer_dir' => base_path() . '/plugin/export/app/queue'
        ]
    ],
    ];
  4. restart
版本历史记录
1.0.0
2023-03-20
数据导出系统
评分及评论
5 满分5分
wesleywu 2023-06-19
安装完成后 PHPSQLParser 类没找到。
🔝