kaqing 2.0.32__py3-none-any.whl → 2.0.33__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- adam/commands/cql_utils.py +3 -6
- adam/commands/describe/describe_keyspace.py +1 -1
- adam/commands/describe/describe_keyspaces.py +1 -1
- adam/commands/describe/describe_table.py +1 -1
- adam/commands/describe/describe_tables.py +1 -1
- adam/version.py +1 -1
- {kaqing-2.0.32.dist-info → kaqing-2.0.33.dist-info}/METADATA +1 -1
- {kaqing-2.0.32.dist-info → kaqing-2.0.33.dist-info}/RECORD +11 -11
- {kaqing-2.0.32.dist-info → kaqing-2.0.33.dist-info}/WHEEL +0 -0
- {kaqing-2.0.32.dist-info → kaqing-2.0.33.dist-info}/entry_points.txt +0 -0
- {kaqing-2.0.32.dist-info → kaqing-2.0.33.dist-info}/top_level.txt +0 -0
adam/commands/cql_utils.py
CHANGED
@@ -10,18 +10,15 @@ from adam.repl_state import ReplState
|
|
10
10
|
from adam.utils import log2
|
11
11
|
|
12
12
|
@functools.lru_cache()
|
13
|
-
def keyspaces(
|
13
|
+
def keyspaces(state: ReplState, on_any=False):
|
14
14
|
Config().wait_log("Inspecting Cassandra Keyspaces...")
|
15
15
|
|
16
|
-
|
17
|
-
command = f'cqlsh -u {user} -p {pw} -e "describe keyspaces"'
|
18
|
-
|
19
|
-
r: list[PodExecResult] = CassandraClusters.exec(sts, namespace, command, show_out=False, action='cql', on_any=True)
|
16
|
+
r: list[PodExecResult] = run_cql(state, 'describe keyspaces', show_out=False, on_any=on_any)
|
20
17
|
if not r:
|
21
18
|
log2('No pod is available')
|
22
19
|
return []
|
23
20
|
|
24
|
-
return parse_cql_desc_keyspaces(r[0].stdout)
|
21
|
+
return parse_cql_desc_keyspaces(r.stdout if state.pod else r[0].stdout)
|
25
22
|
|
26
23
|
def table_names(state: ReplState):
|
27
24
|
return [f'{k}.{t}' for k, ts in tables(state, on_any=True).items() for t in ts]
|
@@ -52,7 +52,7 @@ class DescribeKeyspace(Command):
|
|
52
52
|
|
53
53
|
def completion(self, state: ReplState) -> dict[str, any]:
|
54
54
|
if state.sts:
|
55
|
-
return super().completion(state, {ks: {'--all-nodes': None} for ks in keyspaces(state
|
55
|
+
return super().completion(state, {ks: {'--all-nodes': None} for ks in keyspaces(state, on_any=True)})
|
56
56
|
|
57
57
|
return {}
|
58
58
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from adam.commands.command import Command
|
2
|
-
from adam.commands.cql_utils import
|
2
|
+
from adam.commands.cql_utils import run_cql
|
3
3
|
from adam.pod_exec_result import PodExecResult
|
4
4
|
from adam.repl_state import ReplState, RequiredState
|
5
5
|
from adam.utils import log2
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from adam.commands.command import Command
|
2
|
-
from adam.commands.cql_utils import
|
2
|
+
from adam.commands.cql_utils import run_cql, table_names
|
3
3
|
from adam.pod_exec_result import PodExecResult
|
4
4
|
from adam.repl_state import ReplState, RequiredState
|
5
5
|
from adam.utils import log2
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from adam.commands.command import Command
|
2
|
-
from adam.commands.cql_utils import
|
2
|
+
from adam.commands.cql_utils import run_cql
|
3
3
|
from adam.pod_exec_result import PodExecResult
|
4
4
|
from adam.repl_state import ReplState, RequiredState
|
5
5
|
from adam.utils import log2
|
adam/version.py
CHANGED
@@ -14,7 +14,7 @@ adam/repl_commands.py,sha256=Qg5b83NOoVigHB9b5wThhpUUTb-Gxy1b4IkBXQqQJa4,4708
|
|
14
14
|
adam/repl_session.py,sha256=uIogcvWBh7wd8QQ-p_JgLsyJ8YJgINw5vOd6JIsd7Vo,472
|
15
15
|
adam/repl_state.py,sha256=591d7gV6uQSFtm7IWdlIYAHjfAzs9bdvIkwlIAeKddE,7540
|
16
16
|
adam/utils.py,sha256=2DoWsrcaioFFH0-RjT30qelVRPUJqCGTfz_ucfE7F8g,7406
|
17
|
-
adam/version.py,sha256=
|
17
|
+
adam/version.py,sha256=vdudGn3enK3ZNNY3c2K7pEWvNElxynLujmxfTqmtDCI,139
|
18
18
|
adam/checks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
19
|
adam/checks/check.py,sha256=Qopr3huYcMu2bzQgb99dEUYjFzkjKHRI76S6KA9b9Rk,702
|
20
20
|
adam/checks/check_context.py,sha256=FEHkQ32jY1EDopQ2uYWqy9v7aEEX1orLpJWhopwAlh4,402
|
@@ -58,7 +58,7 @@ adam/commands/command.py,sha256=lULNtaRJ-S9hTBpJY2rjWwZaQi_S4zGqZrsd89M_wik,2879
|
|
58
58
|
adam/commands/command_helpers.py,sha256=leOJJK1UXczNTJHN9TGMCbIpUpmpreULvQ-TvnsYS7w,1134
|
59
59
|
adam/commands/commands_utils.py,sha256=ShUcxtDSd9B3NM0GDj3NBvKdmjCGY8qXgeUJpzNF63E,3122
|
60
60
|
adam/commands/cp.py,sha256=dyQViRDPNqsKRkxPb7WyEVIBNw7YB6IfYa2q3VtfzyA,3107
|
61
|
-
adam/commands/cql_utils.py,sha256=
|
61
|
+
adam/commands/cql_utils.py,sha256=LGRwhGf1bCZ0SS0F9a2dXGcCbcKpoR10wuQyaXuAm-A,3893
|
62
62
|
adam/commands/cqlsh.py,sha256=4dcemAdCQvpUAkLTpkOEhrbRHimovxSAG8eJ0i4RQM8,2939
|
63
63
|
adam/commands/devices.py,sha256=_f8j6aQzTL8_pFlWYawRuG2Ju1zPjYSPcRIlLnZng10,2397
|
64
64
|
adam/commands/exit.py,sha256=5MWUAmzYBlsrp0CoiTDB13SUkX9Ya18UlGeOIPia6TA,798
|
@@ -92,10 +92,10 @@ adam/commands/deploy/undeploy_frontend.py,sha256=gHekPn7l19JgVbhneKpQ7ModNoDFmzW
|
|
92
92
|
adam/commands/deploy/undeploy_pg_agent.py,sha256=RYME8no1FT94WpVg-HXDGL1NmLlpE1I9R4htitjaxpo,1319
|
93
93
|
adam/commands/deploy/undeploy_pod.py,sha256=hTcL8cAh7xYPcSm9sgiVFCxPh3SskefBfTmla310oUA,1905
|
94
94
|
adam/commands/describe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
95
|
-
adam/commands/describe/describe_keyspace.py,sha256=
|
96
|
-
adam/commands/describe/describe_keyspaces.py,sha256=
|
97
|
-
adam/commands/describe/describe_table.py,sha256=
|
98
|
-
adam/commands/describe/describe_tables.py,sha256=
|
95
|
+
adam/commands/describe/describe_keyspace.py,sha256=CdgDBMlOngp_P5dK4QbqmqEGVZfhrRcFyISSrXoXoa4,1927
|
96
|
+
adam/commands/describe/describe_keyspaces.py,sha256=O6ZY3q7H3-fNDEHf_qjgfTQmdYPXExAZh1M1COPJbnM,1574
|
97
|
+
adam/commands/describe/describe_table.py,sha256=HL9Bufqj60R7GqqfhMvNgb6-eGPpOOf_okHoNT-2B9s,1883
|
98
|
+
adam/commands/describe/describe_tables.py,sha256=2EtkLavSTNy-JHtegR9qUoVYs2NPmAz1Tq-yc-hKzZY,1553
|
99
99
|
adam/commands/medusa/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
100
100
|
adam/commands/medusa/medusa.py,sha256=Y_yyOZRb6u45wfTVBRp3kuklyYDTSlaAJQdAiymP_8M,2185
|
101
101
|
adam/commands/medusa/medusa_backup.py,sha256=j4DTVWFT-4rzs4gG_pBvjE-JuPsVCJIsnyQjIzJ4EbA,1801
|
@@ -166,8 +166,8 @@ adam/sso/idp.py,sha256=fvcwUw_URTgsO6ySaqTIw0zQT2qRO1IPSGhf6rPtybo,5804
|
|
166
166
|
adam/sso/idp_login.py,sha256=QAtCUeDTVWliJy40RK_oac8Vgybr13xH8wzeBoxPaa8,1754
|
167
167
|
adam/sso/idp_session.py,sha256=9BUHNRf70u4rVKrVY1HKPOEmOviXvkjam8WJxmXSKIM,1735
|
168
168
|
adam/sso/sso_config.py,sha256=5N8WZgIJQBtHUy585XLRWKjpU87_v6QluyNK9E27D5s,2459
|
169
|
-
kaqing-2.0.
|
170
|
-
kaqing-2.0.
|
171
|
-
kaqing-2.0.
|
172
|
-
kaqing-2.0.
|
173
|
-
kaqing-2.0.
|
169
|
+
kaqing-2.0.33.dist-info/METADATA,sha256=2xjjG7vET3X8P1KUhCDsfpvHT6G0CBLfXOJyB9y_ErE,132
|
170
|
+
kaqing-2.0.33.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
171
|
+
kaqing-2.0.33.dist-info/entry_points.txt,sha256=SkzhuQJUWsXOzHeZ5TgQ2c3_g53UGK23zzJU_JTZOZI,39
|
172
|
+
kaqing-2.0.33.dist-info/top_level.txt,sha256=8_2PZkwBb-xDcnc8a2rAbQeJhXKXskc7zTP7pSPa1fw,5
|
173
|
+
kaqing-2.0.33.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|