commit | e8f61622145ec38c0aeba8af344b3cca4b6389f5 | [log] [tgz] |
---|---|---|
author | Ken Ashcraft <kash@google.com> | Fri May 22 16:21:50 2015 -0700 |
committer | Ken Ashcraft <kash@google.com> | Fri May 22 16:21:52 2015 -0700 |
tree | 843302277b94ebbcee34ba7daff84cf1632b7489 | |
parent | f528ed081c99f34101d2c65bad9bd0adb43c9555 [diff] |
query/demo: Choose between CSV and pretty-printed output. By default, print query results in ascii tables. This requires buffering the entire result set to determine column widths. If you don't want to buffer the entire result, you can use CSV output. Also:, replace db.go's init() with InitDB(). We can't call vanadium initialization code as part of init() or else it will parse flags before our main's flags are defined. Change-Id: I217751e1ca98388d0d03e841c537038279ddd3a8