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

相关文章

Linux中的ARP防火墙主要用于防御ARP欺骗攻击,其效果取决于多...
insmod和modprobe加-f参数导致Invalid module format错误 这...
将ArchLinux安装到U盘 几个月前入门Arch的时候上网搜了不少安...
1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...