Skip to content

Large tables rendering  #21

Open
Open

Description

@herrfugbaum

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

Activity

  1. added
    bug
    help wanted
    good first issue
    on Dec 4, 2018
  2. ankush981 commented on Dec 4, 2018

    @ankush981

    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. 🤔

  3. herrfugbaum commented on Dec 5, 2018

    @herrfugbaum
    OwnerAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions