微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

原文地址:https://www.jb51.cc/linux/394714.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐