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: sqlite3 .output compatibility #115

Open
t3h2mas opened this issue Apr 15, 2021 · 1 comment
Open

Feature request: sqlite3 .output compatibility #115

t3h2mas opened this issue Apr 15, 2021 · 1 comment

Comments

@t3h2mas
Copy link

t3h2mas commented Apr 15, 2021

It would be great to be able to save query results using litecli. Currently, my workflow involves copying a query from litecli and using sqlite3 to get a csv.

Similar to the following in sqlite3

.mode csv
.output results.csv
...
@amjith
Copy link
Member

amjith commented Apr 16, 2021

There is a tee command available that will write the query and the results to a specified file. Here's an equivalent workflow.

.mode csv
tee filename.csv

Unfortunately this won't save just the output it will also include the query itself.

You can turn off the output to file using notee command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants