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

Feature request: input from stdout #75

Closed
Izzur opened this issue Mar 12, 2020 · 1 comment
Closed

Feature request: input from stdout #75

Izzur opened this issue Mar 12, 2020 · 1 comment

Comments

@Izzur
Copy link

Izzur commented Mar 12, 2020

It will help with chaining command and using pipe, eg. doing pre-processing of json files with jq qnd pipe its output as input for sqlitebiter

thombashi added a commit that referenced this issue Apr 5, 2020
@thombashi
Copy link
Owner

@Izzur
Thank you for your feedback.

I had added stdin subcommand at sqlitebiter 0.32.0.
You can convert data from stdin like follows:

$ echo '[{"hoge": 4, "foo": "abc"}, {"hoge": 12, "foo": "xyz"}]' | sqlitebiter stdin json
[INFO] convert 'stdin' to 'json1' table
[INFO] converted results: source=1, success=1, created-table=1
[INFO] database path: out.sqlite

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

2 participants