cassandra – 在Linux终端中对cqlsh命令的结果进行整理

在使用cqlsh实用程序(Mongo .pretty()的cql版本)时,有没有办法在 Linux终端中对cql命令的结果进行美化?当输出正常显示时,读取结果变得非常困难,尤其是当存在嵌套文档和数组时

解决方法

也许您对EXPAND命令感兴趣?

用法:EXPAND ON;

从Datastax上的文档:

This command lists the contents of each row of a table vertically,providing a more convenient way to read long rows of data than the default horizontal format. You scroll down to see more of the row instead of scrolling to the right. Each column name appears on a separate line in column one and the values appear in column two.

资料来源:https://docs.datastax.com/en/cql/3.3/cql/cql_reference/expand.html

相关文章

/etc/sysctl.conf这个目录主要是配置一些系统信息,/etc/sys...
1.作用 useradd或adduser命令用来建立用户帐号和创建用户的起...
它们都是多模式编辑器,不同的是vim 是vi的升级版本,它不仅...
不管是我们在安装软件还是监测软件的使用性能,我们都要随时...
装好Tomcat7后,发现除了本机能访问外界访问不了,岂有此理。...
修改防火墙配置需要修改 /etc/sysconfig/iptables 这个文件,...