synbase: syncQL: demo program enhancements
Respond to kash feedback on demo program:
- add column names
Note: the column names do not line up with the rows.
Max column widths aren't known until the entire
result set is iterated over.
Note2: as <name> would be useful to support since column names
are now being returned. I'll do that in a later CL.
- I checked in third_party github.com/peterh/liner for
libreadline functionality and use it here
(currently history is not persisted across executions)
- ctrl-d now exits (ctrl-c, quit and exit work too).
- make sure a newline is emitted on ctrl-c.
- change dump command to use the query language (select k, v from ...)
This prints out the values with %v and it is easy to see types
(and strings have quotes around them).
- add a missing closing paren in three error messages
- offset no longer printed in error messages.
This change does NOT do the following:
implement distinct(t)
Change-Id: I640280cd174c1735f5a431f62f86dba8c18e571b
9 files changed