diogob / postgres-copy

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

How about `copy_from_string` / `copy_from_stream` / `copy_to_stream` #33

Closed ghost closed 7 years ago

ghost commented 8 years ago

Thanks for the great work.

copy_to_string is nice, but how about adding a method to do the reverse?

foxtacles commented 8 years ago

If you are looking for something like copy_from_string: use copy_from and pass a StringIO into it which wraps your input string