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: In CLI get output of query in a bash script friendly format. #3876

Closed
elviejo79 opened this issue Jul 19, 2024 · 1 comment · Fixed by #4053
Closed

Feature: In CLI get output of query in a bash script friendly format. #3876

elviejo79 opened this issue Jul 19, 2024 · 1 comment · Fixed by #4053
Assignees
Labels
feature New features or missing components of existing features

Comments

@elviejo79
Copy link

API

Other

Description

As discussed on discord:
https://discord.com/channels/1196510116388806837/1263654043088322600/1263659074554302515

In bash:
When I execute the command:

$ echo "CREATE (t:Task {title: '1st'}\); Match (t:Task) RETURN t;" | kuzu ./my_todos.kuzudb

I get an output like:

Opened the database at path: ./my_todos.kuzudb in read-write mode.
Enter ":help" for usage hints.
-
(0 tuples)
(0 columns)
Time: 0.85ms (compiling), 25.13ms (executing)
------------------------------------------------------
| t                                                  |
------------------------------------------------------
| {_ID: 0:0, _LABEL: Task, id: 0, title: 1st} |
------------------------------------------------------

Which has too much decoration to be easy to parse.

I would like some output command.
So that I can receive the results as CSV, TSV, or even better JSON.
to use Kuzu as part of bash scripts.

in the mean time...
I can either clean the output by "hand"
or script in python.

@elviejo79 elviejo79 added the feature New features or missing components of existing features label Jul 19, 2024
@andyfengHKU
Copy link
Contributor

Hi @elviejo79, just let u know issue is solved in #4053 and should be available in our nightly build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New features or missing components of existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants