Skip to content

Commit d1bb1ff

Browse files
committed
Fixed describe tables
fixed described tables functionality
1 parent 8c28764 commit d1bb1ff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

cqlsh-expansion/cqlshlib/describe_function3x.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,20 @@ def get_ring_3x():
4343
def get_keyspace_names_3x_mod():
4444
return list(cqlshell.conn.metadata.keyspaces.keys())
4545

46+
4647
def get_columnfamily_names_3x(ksname=None):
4748
if ksname is None:
4849
ksname = cqlshell.current_keyspace
4950

51+
return list(get_keyspace_meta_3x(ksname).tables.keys())
52+
5053
def get_keyspace_meta_3x( ksname):
5154
if ksname not in cqlshell.conn.metadata.keyspaces:
5255
raise KeyspaceNotFound('Keyspace %r not found.' % ksname)
5356
return cqlshell.conn.metadata.keyspaces[ksname]
5457

58+
59+
5560
def get_partitioner_3x():
5661
return cqlshell.conn.metadata.partitioner
5762

cqlsh-expansion/setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
# Get the long description from the README file
66
long_description = (pathlib.Path(__file__).parent.resolve() / 'README.md').read_text(encoding='utf-8')
77

8-
98
# Setting up
109
setup(
1110
name="cqlsh-expansion",
12-
version='0.9.5',
11+
version='0.9.6',
1312
description='The cqlsh-expansion utility extends native cqlsh functionality to include cloud native capabilities',
1413
long_description=long_description,
1514
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)