Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将数据库查询的结果上传到 S3。结果太大,所以我不想在本地存储它。我还想在上传到 S3 之前压缩结果。
是否可以在 bash 中执行类似“管道”的操作?
谢谢你。
您可以使用 io.Pipe() 通过压缩/gzip 从您的数据库阅读器流式传输到客户端编写器