diogob / postgres-copy

Simple PostgreSQL's COPY command support in ActiveRecord models
MIT License
429 stars 64 forks source link

Add copy_to_enumerator #44

Closed DanielHeath closed 7 years ago

DanielHeath commented 7 years ago

See https://github.com/diogob/postgres-copy/issues/42

diogob commented 7 years ago

Thanks for the PR 👍 Could you add a spec for for this code?

DanielHeath commented 7 years ago

Added spec and also added buffering support (since the primary use-case is web streaming, where it can easily offer a 100x speedup).