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

[WIP] Add support for special commands in favorite queries. #600

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tsroten
Copy link
Member

@tsroten tsroten commented May 20, 2018

Description

This makes it so your favorite queries can use special commands. For example, you might have a regular export or command you run that should use a particular table format.
\T csv; \once /path/to/export/file.csv; select * from tables limit 5; \T ascii;

Or
\T tsv; pager vim -; select 1, 2, 3; \T ascii; pager less;

NOTE: There is still some weird behavior here with the headers and status of the results being outputted more than once.

  • Fix issue where some query headers are outputted twice.
  • Add tests.

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).

@tsroten tsroten changed the title [WIP] Add support for special commands in favorite query. [WIP] Add support for special commands in favorite queries. May 20, 2018
@codecov-io
Copy link

codecov-io commented May 20, 2018

Codecov Report

Merging #600 into master will increase coverage by 0.01%.
The diff coverage is 87.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #600      +/-   ##
==========================================
+ Coverage   77.88%   77.89%   +0.01%     
==========================================
  Files          25       25              
  Lines        2401     2407       +6     
==========================================
+ Hits         1870     1875       +5     
- Misses        531      532       +1
Impacted Files Coverage Δ
mycli/packages/special/iocommands.py 88.8% <87.5%> (-0.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4390e38...1d90b81. Read the comment docs.

@pasenor pasenor mentioned this pull request Oct 5, 2019
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants