dinedal / textql

Execute SQL against structured text like CSV or TSV
MIT License
9.05k stars 300 forks source link

Don't print blank results for queries that create tables #86

Closed rdimartino closed 6 years ago

rdimartino commented 6 years ago

This resolves #85

$ textql -output-header -sql "create temp table one(word text); create temp table two(id integer); select *;" <(printf "a,1\nb,2\nc,3")
c0,c1
a,1
b,2
c,3
$ textql -pretty -sql "create temp table one(word text); create temp table two(id integer); select *;" <(printf "a,1\nb,2\nc,3")
+---+---+
| a | 1 |
| b | 2 |
| c | 3 |
+---+---+
dinedal commented 6 years ago

Thank you for taking the time to contribute to TextQL!