ewaters / altsql-shell

An easily extensible DBI shell, perfect for a drop-in replacement to mysql-client
http://ewaters.github.com/altsql-shell
123 stars 19 forks source link

Export data easily in JSON, YAML, etc #1

Closed ewaters closed 12 years ago

ewaters commented 12 years ago

One should be able to easily export data to a dump file. Possible syntax:

> select * from faq_questions limit 10;
> .dump ~/faq_questions.json

or

> select * from faq_questions limit 10 | .dump ~/faq_questions.pl format perl
ewaters commented 12 years ago

This was mostly implemented in #25. The only thing missing was the ability to dump a buffer that was previously fetched. That's a broader issue, so this issue has been resolved.