Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export data easily in JSON, YAML, etc #1

Closed
ewaters opened this issue May 8, 2012 · 1 comment
Closed

Export data easily in JSON, YAML, etc #1

ewaters opened this issue May 8, 2012 · 1 comment

Comments

@ewaters
Copy link
Owner

ewaters commented May 8, 2012

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
  • Context sensitive; will guess output format based on the destination filename extension or by the 'format' argument.
  • Can be performed after a statement has already executed and displayed it's output so that you don't need to rerun a potentially lengthy command to get the same data you just saw
  • Out of the box support for the following formats:
    • Perl (eval() friendly or Storable)
    • JSON
    • YAML
    • HTML table
    • XML?
@ewaters
Copy link
Owner Author

ewaters commented May 31, 2012

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.

@ewaters ewaters closed this as completed May 31, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant