dbcli / litecli

CLI for SQLite Databases with auto-completion and syntax highlighting
https://litecli.com
BSD 3-Clause "New" or "Revised" License
2.06k stars 67 forks source link

Open once_file once per use #168

Closed mjpieters closed 9 months ago

mjpieters commented 9 months ago

It was being re-opened for every single line of output, which prevented .once -o ... from working, plus this is a lot more efficient for long result sets.

Fixes #148.

mjpieters commented 9 months ago

I've based this PR off of the #167 PR; you can review the changes in this PR alone by selecting a single commit on the commits or files changed tabs.

If you choose to merge #167 first, I'll rebase this PR onto master.

mjpieters commented 9 months ago

Rebased now that #167 has been merged.

codecov-commenter commented 9 months ago

Codecov Report

All modified lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (main@a4aa7cd). Click here to learn what that means.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #168 +/- ## ======================================= Coverage ? 61.96% ======================================= Files ? 23 Lines ? 2035 Branches ? 0 ======================================= Hits ? 1261 Misses ? 774 Partials ? 0 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

amjith commented 9 months ago

👍