Chris Jaekl [Tue, 1 Nov 2016 13:13:09 +0000 (22:13 +0900)]
adds support for null suppression
This is controlled via the "\pset suppress_nulls=on" command.
Rows with all null values will be suppressed.
Columns with all null values will be suppressed.
Suppression only applies to formatted (tabular) output, not to CSV output.
When null-suppression mode is on, only one RowBuffer worth of (non-suppressed)
rows will be fetched; this limit is currently hard-coded to 50 rows.
Chris Jaekl [Thu, 13 Oct 2016 11:42:11 +0000 (20:42 +0900)]
Opens and closes the JDBC connection for each command
Instead of holding the connection open for the duration of the application,
open a fresh connection for each command, and close it immediately after the
command completes. This may reduce the risk of having connections hang around
for a while, if the JVM terminates unexpectedly (e.g., if the ssh session gets
killed and the console goes away).
Chris Jaekl [Sun, 12 Jun 2016 13:01:06 +0000 (22:01 +0900)]
select queries now work, and print tabular output.
There is support in the output code for CSV formatting as well, but I still need to add a UI feature to enable it.