cassandra/pylib/cqlshlib
paul cannon 5850178cb9 cqlsh: format output properly, make prettier
most importantly: formats output from queries according to column
storage type, so that e.g. blob data is shown in hex. also formats
timestamp values in a human-readable and cql-readable way, and
shows backslash escapes for text/ascii types when characters can't
be printed. when color is enabled, highlight backslash escapes in
red, so they can easily be distinguished from text that happens to
contain backslashes.

color different types of column data differently: textual data stays
yellow, blob data is red, and other data (types which are shown and
input significantly differently from the byte representation, like
numbers, timestamps, etc) are green.

for static resultsets, add a separator line between header and data
(most helpful for people who don't have colors on). left-justify column
headers instead of right-justifying. for dynamic resultsets, don't
append a final bar separator after the last value.

allow calling into a value renderer/formatter which can make decisions
about output representation and color based on the column type

patch by pcannon; reviewed by jbellis for CASSANDRA-3726
2012-01-20 13:22:38 -06:00
..
__init__.py update versions, news and license headers for 1.0.3 release 2011-11-11 18:40:41 +00:00
cqlhandling.py fix cqlsh support for replicate_on_write 2011-12-08 21:55:07 +00:00
pylexotron.py update cqlsh lexer to handle counter increments 2011-11-14 21:31:30 +00:00
saferscanner.py add next-gen cqlsh 2011-11-07 23:05:54 +00:00
wcwidth.py cqlsh: format output properly, make prettier 2012-01-20 13:22:38 -06:00