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

Large tables rendering #21

Open
herrfugbaum opened this issue Dec 4, 2018 · 2 comments
Open

Large tables rendering #21

herrfugbaum opened this issue Dec 4, 2018 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@herrfugbaum
Copy link
Owner

herrfugbaum commented Dec 4, 2018

Describe the bug
If a table has many columns or if the console window isn't large enough the tables will render quite clunky.

To Reproduce
Steps to reproduce the behavior:

  1. qsv -p path/to/file
  2. SELECT * FROM test

Expected behavior
Tables should look like tables

Screenshots
Result:
04-12-_2018_09-28-26

Result with a wider terminal:
04-12-_2018_10-08-07

Software Versions (please complete the following information):

  • OS: Windows 10 with WSL activated
  • Node.js: v11.2.0
  • Shell: ZSH and PowerShell

Additional context
Probably this can be tackled by configuring table correctly

@herrfugbaum herrfugbaum added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Dec 4, 2018
@ankush981
Copy link

How about adding a \G option to display rows vertically, the way MySQL does? I don't think any amount of formatting can save us, as some files can have 100s of columns. 🤔

@herrfugbaum
Copy link
Owner Author

Good call! I have to take a closer look on this.

I think it's a good idea to do both, so we can see as many columns as possible without the need to use the \G switch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants