tursodatabase / libsql-shell-go

7 stars 7 forks source link

All lines of `.schema` output have the same length (trailing space padding on every line) #146

Open CodingDoug opened 11 months ago

CodingDoug commented 11 months ago

The output of .schema is excessively large, especially in the case where there is at least one very long line (e.g. a trigger statement body) anywhere in its output. All lines of output have the same length as the longest line of output.

The problem is generally invisible in a shell until that one long line exceeds the width of the shell's window. At that point, every line now takes more than 1 physical line to render, because the trailing spaces causes each line to wrap.

Perhaps .schema is unnecessarily using a fixed-width table for output when instead it could just use raw lines?