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

Open once_file once per use #168

Merged
merged 2 commits into from
Oct 3, 2023
Merged

Open once_file once per use #168

merged 2 commits into from
Oct 3, 2023

Conversation

mjpieters
Copy link
Contributor

@mjpieters mjpieters commented Oct 3, 2023

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 mjpieters changed the title Apply black Open once_file once per use Oct 3, 2023
@mjpieters
Copy link
Contributor Author

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.

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.
@mjpieters
Copy link
Contributor Author

Rebased now that #167 has been merged.

@codecov-commenter
Copy link

Codecov Report

All modified lines are covered by tests ✅

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

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@amjith
Copy link
Member

amjith commented Oct 3, 2023

👍

@amjith amjith merged commit f424629 into dbcli:main Oct 3, 2023
5 checks passed
@mjpieters mjpieters deleted the fix_once branch October 6, 2023 17:50
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

Successfully merging this pull request may close these issues.

When using .once -o, only last line remains
3 participants