Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/luffyzhao/exporter
导出csv
https://github.com/luffyzhao/exporter
Last synced: about 2 months ago
JSON representation
导出csv
- Host: GitHub
- URL: https://github.com/luffyzhao/exporter
- Owner: luffyzhao
- Created: 2019-03-13T01:29:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-14T07:00:14.000Z (almost 6 years ago)
- Last Synced: 2024-10-12T10:47:01.923Z (3 months ago)
- Language: PHP
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## csv 数据分批导出
最大可导 `1048576` 行数据,导10条和导10w条数据内存消耗是一样的。使用方法请查看 `test` 目录。
- [FromQuery](./src/Contracts/FromQuery.php)
- [WithHeadings](./src/Contracts/WithHeadings.php)
- [WithMapping](./src/Contracts/WithMapping.php)
- [WithRowsTotal](./src/Contracts/WithRowsTotal.php)> WithRowsTotal 接口都可以,用 WithRowsTotal 接就得先查有多少条数据,不用 WithRowsTotal 就是 while 到最后没有数据