scylla-cqlsh 6.0.18__cp310-cp310-win32.whl → 6.0.20__cp310-cp310-win32.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.
Potentially problematic release.
This version of scylla-cqlsh might be problematic. Click here for more details.
- copyutil.cp310-win32.pyd +0 -0
- cqlsh/cqlsh.py +13 -12
- cqlshlib/_version.py +2 -2
- cqlshlib/cql3handling.py +43 -2
- {scylla_cqlsh-6.0.18.dist-info → scylla_cqlsh-6.0.20.dist-info}/METADATA +1 -1
- {scylla_cqlsh-6.0.18.dist-info → scylla_cqlsh-6.0.20.dist-info}/RECORD +10 -10
- {scylla_cqlsh-6.0.18.dist-info → scylla_cqlsh-6.0.20.dist-info}/LICENSE.txt +0 -0
- {scylla_cqlsh-6.0.18.dist-info → scylla_cqlsh-6.0.20.dist-info}/WHEEL +0 -0
- {scylla_cqlsh-6.0.18.dist-info → scylla_cqlsh-6.0.20.dist-info}/entry_points.txt +0 -0
- {scylla_cqlsh-6.0.18.dist-info → scylla_cqlsh-6.0.20.dist-info}/top_level.txt +0 -0
copyutil.cp310-win32.pyd
CHANGED
|
Binary file
|
cqlsh/cqlsh.py
CHANGED
|
@@ -478,7 +478,7 @@ class Shell(cmd.Cmd):
|
|
|
478
478
|
if protocol_version is not None:
|
|
479
479
|
kwargs['protocol_version'] = protocol_version
|
|
480
480
|
|
|
481
|
-
profiles = {
|
|
481
|
+
self.profiles = {
|
|
482
482
|
EXEC_PROFILE_DEFAULT: ExecutionProfile(consistency_level=cassandra.ConsistencyLevel.ONE,
|
|
483
483
|
request_timeout=request_timeout,
|
|
484
484
|
row_factory=ordered_dict_factory)
|
|
@@ -487,10 +487,10 @@ class Shell(cmd.Cmd):
|
|
|
487
487
|
if cloudconf is None:
|
|
488
488
|
if os.path.exists(self.hostname) and stat.S_ISSOCK(os.stat(self.hostname).st_mode):
|
|
489
489
|
kwargs['contact_points'] = (UnixSocketEndPoint(self.hostname),)
|
|
490
|
-
profiles[EXEC_PROFILE_DEFAULT].load_balancing_policy = WhiteListRoundRobinPolicy([UnixSocketEndPoint(self.hostname)])
|
|
490
|
+
self.profiles[EXEC_PROFILE_DEFAULT].load_balancing_policy = WhiteListRoundRobinPolicy([UnixSocketEndPoint(self.hostname)])
|
|
491
491
|
else:
|
|
492
492
|
kwargs['contact_points'] = (self.hostname,)
|
|
493
|
-
profiles[EXEC_PROFILE_DEFAULT].load_balancing_policy = WhiteListRoundRobinPolicy([self.hostname])
|
|
493
|
+
self.profiles[EXEC_PROFILE_DEFAULT].load_balancing_policy = WhiteListRoundRobinPolicy([self.hostname])
|
|
494
494
|
kwargs['port'] = self.port
|
|
495
495
|
kwargs['ssl_context'] = sslhandling.ssl_settings(hostname, CONFIG_FILE) if ssl else None
|
|
496
496
|
# workaround until driver would know not to lose the DNS names for `server_hostname`
|
|
@@ -503,7 +503,7 @@ class Shell(cmd.Cmd):
|
|
|
503
503
|
auth_provider=self.auth_provider,
|
|
504
504
|
control_connection_timeout=connect_timeout,
|
|
505
505
|
connect_timeout=connect_timeout,
|
|
506
|
-
execution_profiles=profiles,
|
|
506
|
+
execution_profiles=self.profiles,
|
|
507
507
|
**kwargs)
|
|
508
508
|
self.owns_connection = not use_conn
|
|
509
509
|
|
|
@@ -1589,7 +1589,10 @@ class Shell(cmd.Cmd):
|
|
|
1589
1589
|
where object can be either a keyspace or a table or an index or a materialized
|
|
1590
1590
|
view (in this order).
|
|
1591
1591
|
"""
|
|
1592
|
-
|
|
1592
|
+
self._do_describe(parsed, force_client_side_describe=False)
|
|
1593
|
+
|
|
1594
|
+
def _do_describe(self, parsed, force_client_side_describe):
|
|
1595
|
+
if force_client_side_describe:
|
|
1593
1596
|
what = parsed.matched[1][1].lower()
|
|
1594
1597
|
if what == 'functions':
|
|
1595
1598
|
self.describe_functions_client(self.current_keyspace)
|
|
@@ -1665,6 +1668,10 @@ class Shell(cmd.Cmd):
|
|
|
1665
1668
|
elif what:
|
|
1666
1669
|
self.describe_element(result)
|
|
1667
1670
|
|
|
1671
|
+
except cassandra.protocol.SyntaxException:
|
|
1672
|
+
# Server doesn't support DESCRIBE query, retry with
|
|
1673
|
+
# client-side DESCRIBE implementation
|
|
1674
|
+
self._do_describe(parsed, force_client_side_describe=True)
|
|
1668
1675
|
except CQL_ERRORS as err:
|
|
1669
1676
|
err_msg = err.message if hasattr(err, 'message') else str(err)
|
|
1670
1677
|
self.printerr(err_msg.partition("message=")[2].strip('"'))
|
|
@@ -2133,10 +2140,6 @@ class Shell(cmd.Cmd):
|
|
|
2133
2140
|
kwargs['port'] = self.port
|
|
2134
2141
|
kwargs['ssl_context'] = self.conn.ssl_context
|
|
2135
2142
|
kwargs['ssl_options'] = self.conn.ssl_options
|
|
2136
|
-
if os.path.exists(self.hostname) and stat.S_ISSOCK(os.stat(self.hostname).st_mode):
|
|
2137
|
-
kwargs['load_balancing_policy'] = WhiteListRoundRobinPolicy([UnixSocketEndPoint(self.hostname)])
|
|
2138
|
-
else:
|
|
2139
|
-
kwargs['load_balancing_policy'] = WhiteListRoundRobinPolicy([self.hostname])
|
|
2140
2143
|
else:
|
|
2141
2144
|
kwargs['scylla_cloud'] = self.cloudconf
|
|
2142
2145
|
|
|
@@ -2145,6 +2148,7 @@ class Shell(cmd.Cmd):
|
|
|
2145
2148
|
auth_provider=auth_provider,
|
|
2146
2149
|
control_connection_timeout=self.conn.connect_timeout,
|
|
2147
2150
|
connect_timeout=self.conn.connect_timeout,
|
|
2151
|
+
execution_profiles=self.profiles,
|
|
2148
2152
|
**kwargs)
|
|
2149
2153
|
|
|
2150
2154
|
if self.current_keyspace:
|
|
@@ -2153,9 +2157,6 @@ class Shell(cmd.Cmd):
|
|
|
2153
2157
|
session = conn.connect()
|
|
2154
2158
|
|
|
2155
2159
|
# Copy session properties
|
|
2156
|
-
session.default_timeout = self.session.default_timeout
|
|
2157
|
-
session.row_factory = self.session.row_factory
|
|
2158
|
-
session.default_consistency_level = self.session.default_consistency_level
|
|
2159
2160
|
session.max_trace_wait = self.session.max_trace_wait
|
|
2160
2161
|
|
|
2161
2162
|
# Update after we've connected in case we fail to authenticate
|
cqlshlib/_version.py
CHANGED
cqlshlib/cql3handling.py
CHANGED
|
@@ -36,8 +36,8 @@ class UnexpectedTableStructure(UserWarning):
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
SYSTEM_KEYSPACES = ('system', 'system_schema', 'system_traces', 'system_auth', 'system_distributed', 'system_views',
|
|
39
|
-
'system_virtual_schema', 'system_distributed_everywhere')
|
|
40
|
-
NONALTERBALE_KEYSPACES = ('system', 'system_schema', 'system_views', 'system_virtual_schema', 'system_distributed_everywhere')
|
|
39
|
+
'system_virtual_schema', 'system_distributed_everywhere', 'system_replicated_keys')
|
|
40
|
+
NONALTERBALE_KEYSPACES = ('system', 'system_schema', 'system_views', 'system_virtual_schema', 'system_distributed_everywhere', 'system_replicated_keys')
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
class Cql3ParsingRuleSet(CqlParsingRuleSet):
|
|
@@ -296,6 +296,12 @@ JUNK ::= /([ \t\r\f\v]+|(--|[/][/])[^\n\r]*([\n\r]|$)|[/][*].*?[*][/])/ ;
|
|
|
296
296
|
| <alterRoleStatement>
|
|
297
297
|
| <dropRoleStatement>
|
|
298
298
|
| <listRolesStatement>
|
|
299
|
+
| <createSlaStatement>
|
|
300
|
+
| <alterSlaStatement>
|
|
301
|
+
| <dropSlaStatement>
|
|
302
|
+
| <listSlaStatement>
|
|
303
|
+
| <attachSlaStatement>
|
|
304
|
+
| <detachRSlaStatement>
|
|
299
305
|
;
|
|
300
306
|
|
|
301
307
|
<authorizationStatement> ::= <grantStatement>
|
|
@@ -1501,6 +1507,41 @@ syntax_rules += r'''
|
|
|
1501
1507
|
;
|
|
1502
1508
|
'''
|
|
1503
1509
|
|
|
1510
|
+
syntax_rules += r'''
|
|
1511
|
+
<slaName> ::= <identifier>
|
|
1512
|
+
| <quotedName>
|
|
1513
|
+
| <unreservedKeyword>
|
|
1514
|
+
;
|
|
1515
|
+
|
|
1516
|
+
<createSlaStatement> ::= "CREATE" "SERVICE_LEVEL" ( "IF" "NOT" "EXISTS" )? <slaName>
|
|
1517
|
+
( "WITH" <slaProperty> ("AND" <slaProperty>)*)?
|
|
1518
|
+
;
|
|
1519
|
+
|
|
1520
|
+
<alterSlaStatement> ::= "ALTER" "SERVICE_LEVEL" ("IF" "EXISTS")? <slaName>
|
|
1521
|
+
( "WITH" <slaProperty> ("AND" <slaProperty>)*)?
|
|
1522
|
+
;
|
|
1523
|
+
|
|
1524
|
+
<slaProperty> ::= "WORKLOAD_TYPE" "=" <stringLiteral>
|
|
1525
|
+
| "TIMEOUT" "=" <wholenumber>
|
|
1526
|
+
| "SHARES" "=" <wholenumber>
|
|
1527
|
+
;
|
|
1528
|
+
|
|
1529
|
+
<dropSlaStatement> ::= "DROP" "SERVICE_LEVEL" ("IF" "EXISTS")? <slaName>
|
|
1530
|
+
;
|
|
1531
|
+
|
|
1532
|
+
<listSlaStatement> ::= ("LIST" "SERVICE_LEVEL" <slaName> )
|
|
1533
|
+
| ("LIST" "ATTACHED" "SERVICE_LEVEL" "OF" <rolename> )
|
|
1534
|
+
| ("LIST" "ALL" "SERVICE_LEVELS" )
|
|
1535
|
+
| ("LIST" "ALL" "ATTACHED" "SERVICE_LEVELS" )
|
|
1536
|
+
;
|
|
1537
|
+
|
|
1538
|
+
<attachSlaStatement> ::= "ATTACH" "SERVICE_LEVEL" <slaName> "TO" <rolename>
|
|
1539
|
+
;
|
|
1540
|
+
|
|
1541
|
+
<detachRSlaStatement> ::= "DETACH" "SERVICE_LEVEL" <slaName> "FROM" <rolename>
|
|
1542
|
+
;
|
|
1543
|
+
'''
|
|
1544
|
+
|
|
1504
1545
|
syntax_rules += r'''
|
|
1505
1546
|
<grantStatement> ::= "GRANT" <permissionExpr> "ON" <resource> "TO" <rolename>
|
|
1506
1547
|
;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
copyutil.cp310-win32.pyd,sha256=
|
|
1
|
+
copyutil.cp310-win32.pyd,sha256=QtgRCLtGNvlcoawGkmpcyk6pHmhNWbX2dIexXBH-QRA,1065472
|
|
2
2
|
cqlsh/__init__.py,sha256=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN_XKdLCPjaYaY,2
|
|
3
3
|
cqlsh/__main__.py,sha256=x2NuvlSuAKwNCxiX07YoYfxog9JNAO759ZxnjBEcfus,231
|
|
4
|
-
cqlsh/cqlsh.py,sha256=
|
|
4
|
+
cqlsh/cqlsh.py,sha256=LdOs8vhjG_oimhOXGoyHd7Ijv6I5Qt0ysWORZrU--Rk,114602
|
|
5
5
|
cqlshlib/__init__.py,sha256=3M0IQCsjdCGYEOBT20swSvqxV6V8vg_mu1uJig78Vmk,3274
|
|
6
|
-
cqlshlib/_version.py,sha256=
|
|
6
|
+
cqlshlib/_version.py,sha256=oluWKZHU0y3TXlgs59i2YVKAPIbJ99s3-x1vHc1xV00,429
|
|
7
7
|
cqlshlib/authproviderhandling.py,sha256=goFjJCO1FKuVCXU7KXlmlorx_cD_oIRlgpOeH13W--g,7254
|
|
8
8
|
cqlshlib/copyutil.py,sha256=Pc4WaKg_W8IP4ZpuWEvoLOrJJGQTwRHTyOdqExfDro0,116171
|
|
9
|
-
cqlshlib/cql3handling.py,sha256=
|
|
9
|
+
cqlshlib/cql3handling.py,sha256=NaPViE6v9K4S4ffBmmWzI3_U0Kd-HvBjKq3N6G4GLzI,60790
|
|
10
10
|
cqlshlib/cqlhandling.py,sha256=hiqjCKY5fQnqSEeugYJgAD3hRiloqUtOUTSg_GccL4A,13436
|
|
11
11
|
cqlshlib/cqlshhandling.py,sha256=cMlDbq5MuXagJmq-qpJxRqwstOAawWUu2rry6tfHV_w,10824
|
|
12
12
|
cqlshlib/displaying.py,sha256=WxKcYuX098sa6NoyPeYwJod0zutkrTm2Zm3riIhrYpA,4105
|
|
@@ -18,9 +18,9 @@ cqlshlib/sslhandling.py,sha256=XYdvON1WkWFQ5dg5ttpwpSQDgbqI58YJi8Lx1qTDtQA,4758
|
|
|
18
18
|
cqlshlib/tracing.py,sha256=Krb-TkfWrUdxr17-2yZrW5DXKvBEQt-FYZAix_62Tes,3493
|
|
19
19
|
cqlshlib/util.py,sha256=gHvzlTw1T9N1YzXdVPFptAt58EzyXpDRibAo8QB03I8,5240
|
|
20
20
|
cqlshlib/wcwidth.py,sha256=zsoo9u3ZA3q8RL5Afb6ynRujqDdUZ9zlFIHGE8RkqyA,16244
|
|
21
|
-
scylla_cqlsh-6.0.
|
|
22
|
-
scylla_cqlsh-6.0.
|
|
23
|
-
scylla_cqlsh-6.0.
|
|
24
|
-
scylla_cqlsh-6.0.
|
|
25
|
-
scylla_cqlsh-6.0.
|
|
26
|
-
scylla_cqlsh-6.0.
|
|
21
|
+
scylla_cqlsh-6.0.20.dist-info/LICENSE.txt,sha256=65AZdlqRQxiyMBv8nY6itMITk5jx9EkE_jHujbcDzbk,11564
|
|
22
|
+
scylla_cqlsh-6.0.20.dist-info/METADATA,sha256=jaPgyuGxL4rxuh_GwXC7oxU9fQoS0D-03B4ZWmQIQUw,2910
|
|
23
|
+
scylla_cqlsh-6.0.20.dist-info/WHEEL,sha256=RyLtD17TRXemRgS90DEnpEXWZB9e6GGH4dvD03N_Jp0,98
|
|
24
|
+
scylla_cqlsh-6.0.20.dist-info/entry_points.txt,sha256=oE4unqgR3WwNkCJDGlMG1HYtCE3nEZZ4d9CIl-JSZyQ,46
|
|
25
|
+
scylla_cqlsh-6.0.20.dist-info/top_level.txt,sha256=PVG-5w7PDG3FoAJH6Rq2I8C0y4cKa2KOW75GxjHkmQ4,24
|
|
26
|
+
scylla_cqlsh-6.0.20.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|