我正在尝试使用reactivemongo-akkastream 0.12.1从Mongodb流式传输数据,并将结果返回到其中一个路由中的CSV流中(使用Akka-http)。我确实按照此处的示例实现了这一点:
http://doc.akka.io/docs/akka-http/10.0.0/scala/http/routing-dsl/source-streaming-support.html#simple-csv-streaming-example
它看起来工作正常。
我现在面临的唯一问题是如何将标题添加到输出 CSV 文件中。有任何想法吗?
谢谢
scala mongodb akka-stream akka-http
akka-http ×1
akka-stream ×1
mongodb ×1
scala ×1