]> jaekl.net Git - squelch.git/commit
adds support for null suppression
authorChris Jaekl <cejaekl@yahoo.com>
Tue, 1 Nov 2016 13:13:09 +0000 (22:13 +0900)
committerChris Jaekl <cejaekl@yahoo.com>
Tue, 1 Nov 2016 13:13:09 +0000 (22:13 +0900)
commit14b727ac09bf5a635b49a50864be3904f6c03d89
tree77509c32a10c6c6f5e2f9b16247839efe4c29993
parentbb9b1774cd6b96464b5c602458ad622ff17fd6cb
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.
src/main/java/net/jaekl/squelch/Squelch.java
src/main/java/net/jaekl/squelch/db/DbDriver.java
src/main/java/net/jaekl/squelch/stmt/Describe.java
src/main/java/net/jaekl/squelch/stmt/PSet.java [new file with mode: 0644]
src/main/java/net/jaekl/squelch/stmt/Select.java
src/main/java/net/jaekl/squelch/stmt/Tabular.java
src/test/java/net/jaekl/squelch/stmt/DescribeTest.java
src/test/java/net/jaekl/squelch/stmt/PSetTest.java [new file with mode: 0644]
src/test/java/net/jaekl/squelch/stmt/TabularTest.java