Is there a clear equivalent of 'show keyspaces' in cqlsh 2?

后端 未结 4 1303
礼貌的吻别
礼貌的吻别 2020-12-23 16:38

What cqlsh command can I use to quickly see the keyspaces in a cluster? cqlsh does not provide show keyspaces and describe cluster isn\'t as concis

4条回答
  •  感情败类
    2020-12-23 17:10

    The correct way with C* 3.x series is:

    List keyspaces = Cluster.getMetadata().getKeyspaces()
    

    Then use getName() on the KeyspaceMetadata instances.

提交回复
热议问题