scylla-cqlsh 6.0.12__cp38-cp38-win32.whl → 6.0.14__cp38-cp38-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.cp38-win32.pyd +0 -0
- cqlsh/cqlsh.py +11 -4
- cqlshlib/_version.py +14 -2
- cqlshlib/copyutil.py +13 -2
- cqlshlib/pylexotron.py +1 -1
- {scylla_cqlsh-6.0.12.dist-info → scylla_cqlsh-6.0.14.dist-info}/METADATA +1 -1
- {scylla_cqlsh-6.0.12.dist-info → scylla_cqlsh-6.0.14.dist-info}/RECORD +11 -11
- {scylla_cqlsh-6.0.12.dist-info → scylla_cqlsh-6.0.14.dist-info}/WHEEL +1 -1
- {scylla_cqlsh-6.0.12.dist-info → scylla_cqlsh-6.0.14.dist-info}/LICENSE.txt +0 -0
- {scylla_cqlsh-6.0.12.dist-info → scylla_cqlsh-6.0.14.dist-info}/entry_points.txt +0 -0
- {scylla_cqlsh-6.0.12.dist-info → scylla_cqlsh-6.0.14.dist-info}/top_level.txt +0 -0
copyutil.cp38-win32.pyd
CHANGED
|
Binary file
|
cqlsh/cqlsh.py
CHANGED
|
@@ -152,7 +152,7 @@ if os.path.isdir(cqlshlibdir):
|
|
|
152
152
|
from cqlshlib import cql3handling, pylexotron, sslhandling, cqlshhandling, authproviderhandling
|
|
153
153
|
from cqlshlib.copyutil import ExportTask, ImportTask
|
|
154
154
|
from cqlshlib.displaying import (ANSI_RESET, BLUE, COLUMN_NAME_COLORS, CYAN,
|
|
155
|
-
RED, WHITE, FormattedValue, colorme)
|
|
155
|
+
RED, YELLOW, WHITE, FormattedValue, colorme)
|
|
156
156
|
from cqlshlib.formatting import (DEFAULT_DATE_FORMAT, DEFAULT_NANOTIME_FORMAT,
|
|
157
157
|
DEFAULT_TIMESTAMP_FORMAT, CqlType, DateTimeFormat,
|
|
158
158
|
format_by_type)
|
|
@@ -212,7 +212,7 @@ parser.add_option('--cqlversion', default=None,
|
|
|
212
212
|
'by default the highest version supported by the server will be used.'
|
|
213
213
|
' Examples: "3.0.3", "3.1.0"')
|
|
214
214
|
parser.add_option("--protocol-version", type="int", default=None,
|
|
215
|
-
help='Specify a specific
|
|
215
|
+
help='Specify a specific protocol version otherwise the client will default and downgrade as necessary')
|
|
216
216
|
|
|
217
217
|
parser.add_option("-e", "--execute", help='Execute the statement and quit.')
|
|
218
218
|
parser.add_option("--connect-timeout", default=DEFAULT_CONNECT_TIMEOUT_SECONDS, dest='connect_timeout',
|
|
@@ -1110,8 +1110,8 @@ class Shell(cmd.Cmd):
|
|
|
1110
1110
|
try:
|
|
1111
1111
|
self.conn.refresh_schema_metadata(5) # will throw exception if there is a schema mismatch
|
|
1112
1112
|
except Exception:
|
|
1113
|
-
self.
|
|
1114
|
-
|
|
1113
|
+
self.printwarn("Warning: schema version mismatch detected; check the schema versions of your "
|
|
1114
|
+
"nodes in system.local and system.peers.")
|
|
1115
1115
|
self.conn.refresh_schema_metadata(-1)
|
|
1116
1116
|
|
|
1117
1117
|
if result is None:
|
|
@@ -2290,6 +2290,13 @@ class Shell(cmd.Cmd):
|
|
|
2290
2290
|
text = '%s:%d:%s' % (self.stdin.name, self.lineno, text)
|
|
2291
2291
|
self.writeresult(text, color, newline=newline, out=sys.stderr)
|
|
2292
2292
|
|
|
2293
|
+
def printwarn(self, text, color=YELLOW, newline=True, shownum=None):
|
|
2294
|
+
if shownum is None:
|
|
2295
|
+
shownum = self.show_line_nums
|
|
2296
|
+
if shownum:
|
|
2297
|
+
text = '%s:%d:%s' % (self.stdin.name, self.lineno, text)
|
|
2298
|
+
self.writeresult(text, color, newline=newline, out=sys.stderr)
|
|
2299
|
+
|
|
2293
2300
|
def stop_coverage(self):
|
|
2294
2301
|
if self.coverage and self.cov is not None:
|
|
2295
2302
|
self.cov.stop()
|
cqlshlib/_version.py
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
# file generated by setuptools_scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
TYPE_CHECKING = False
|
|
4
|
+
if TYPE_CHECKING:
|
|
5
|
+
from typing import Tuple, Union
|
|
6
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
7
|
+
else:
|
|
8
|
+
VERSION_TUPLE = object
|
|
9
|
+
|
|
10
|
+
version: str
|
|
11
|
+
__version__: str
|
|
12
|
+
__version_tuple__: VERSION_TUPLE
|
|
13
|
+
version_tuple: VERSION_TUPLE
|
|
14
|
+
|
|
15
|
+
__version__ = version = '6.0.14'
|
|
16
|
+
__version_tuple__ = version_tuple = (6, 0, 14)
|
cqlshlib/copyutil.py
CHANGED
|
@@ -160,6 +160,11 @@ class SendingChannels(object):
|
|
|
160
160
|
self.pipes = [OneWayPipe() for _ in range(num_channels)]
|
|
161
161
|
self.channels = [SendingChannel(p) for p in self.pipes]
|
|
162
162
|
self.num_channels = num_channels
|
|
163
|
+
self._readers = [p.reader for p in self.pipes]
|
|
164
|
+
|
|
165
|
+
def release_readers(self):
|
|
166
|
+
for reader in self._readers:
|
|
167
|
+
reader.close()
|
|
163
168
|
|
|
164
169
|
def close(self):
|
|
165
170
|
for ch in self.channels:
|
|
@@ -177,12 +182,17 @@ class ReceivingChannels(object):
|
|
|
177
182
|
self.pipes = [OneWayPipe() for _ in range(num_channels)]
|
|
178
183
|
self.channels = [ReceivingChannel(p) for p in self.pipes]
|
|
179
184
|
self._readers = [p.reader for p in self.pipes]
|
|
185
|
+
self._writers = [p.writer for p in self.pipes]
|
|
180
186
|
self._rlocks = [p.rlock for p in self.pipes]
|
|
181
187
|
self._rlocks_by_readers = dict([(p.reader, p.rlock) for p in self.pipes])
|
|
182
188
|
self.num_channels = num_channels
|
|
183
189
|
|
|
184
190
|
self.recv = self.recv_select if IS_LINUX else self.recv_polling
|
|
185
191
|
|
|
192
|
+
def release_writers(self):
|
|
193
|
+
for writer in self._writers:
|
|
194
|
+
writer.close()
|
|
195
|
+
|
|
186
196
|
def recv_select(self, timeout):
|
|
187
197
|
"""
|
|
188
198
|
Implementation of the recv method for Linux, where select is available. Receive an object from
|
|
@@ -465,7 +475,8 @@ class CopyTask(object):
|
|
|
465
475
|
for i, process in enumerate(self.processes):
|
|
466
476
|
process.start()
|
|
467
477
|
self.trace_process(process.pid)
|
|
468
|
-
|
|
478
|
+
self.inmsg.release_writers()
|
|
479
|
+
self.outmsg.release_readers()
|
|
469
480
|
self.trace_process(self.get_pid())
|
|
470
481
|
|
|
471
482
|
def stop_processes(self):
|
|
@@ -2232,7 +2243,7 @@ class TokenMap(object):
|
|
|
2232
2243
|
|
|
2233
2244
|
self._initialize_ring()
|
|
2234
2245
|
|
|
2235
|
-
# Note that refresh metadata is disabled by default and we
|
|
2246
|
+
# Note that refresh metadata is disabled by default and we currently do not intercept it
|
|
2236
2247
|
# If hosts are added, removed or moved during a COPY operation our token map is no longer optimal
|
|
2237
2248
|
# However we can cope with hosts going down and up since we filter for replicas that are up when
|
|
2238
2249
|
# making each batch
|
cqlshlib/pylexotron.py
CHANGED
|
@@ -384,7 +384,7 @@ class ParsingRuleSet:
|
|
|
384
384
|
def parse_rules(cls, rulestr):
|
|
385
385
|
tokens, unmatched = cls.RuleSpecScanner.scan(rulestr)
|
|
386
386
|
if unmatched:
|
|
387
|
-
raise LexingError.from_text(rulestr, unmatched, msg="Syntax rules are
|
|
387
|
+
raise LexingError.from_text(rulestr, unmatched, msg="Syntax rules are unparsable")
|
|
388
388
|
rules = {}
|
|
389
389
|
terminals = []
|
|
390
390
|
tokeniter = iter(tokens)
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
copyutil.cp38-win32.pyd,sha256=
|
|
1
|
+
copyutil.cp38-win32.pyd,sha256=Xzvce1F-dpXZ4GzSQn1Wy0vEBgtZZkkgYss2Fc4gQhA,1096192
|
|
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=dtlp2xwaXu7LLEWOp7xdtV7poRj1aGChOxinTOzeINw,113614
|
|
5
5
|
cqlshlib/__init__.py,sha256=3M0IQCsjdCGYEOBT20swSvqxV6V8vg_mu1uJig78Vmk,3274
|
|
6
|
-
cqlshlib/_version.py,sha256=
|
|
6
|
+
cqlshlib/_version.py,sha256=P4uuvLDAh0hkAc3F2dlAYC69Lvb3JASlaa7eaxVsY0c,429
|
|
7
7
|
cqlshlib/authproviderhandling.py,sha256=goFjJCO1FKuVCXU7KXlmlorx_cD_oIRlgpOeH13W--g,7254
|
|
8
|
-
cqlshlib/copyutil.py,sha256=
|
|
8
|
+
cqlshlib/copyutil.py,sha256=6d8F5kVr3UPFVRvmX4t5yr3PId1a4L6PBYwFyZUjOaM,116130
|
|
9
9
|
cqlshlib/cql3handling.py,sha256=7lwOXRGeDH-IDy2ENNJ3dbeP5o3LRmlonvIoO9rs6kw,59132
|
|
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
|
|
13
13
|
cqlshlib/formatting.py,sha256=-oKYKPHUH9o2GFUC8QPWs3cbDplJ6awn_Xw4uIMuIUg,23633
|
|
14
14
|
cqlshlib/helptopics.py,sha256=Dh2qBHFWJHwkZyQKfC6Ma5o-grLix2uqnFba6UTYxVA,4714
|
|
15
|
-
cqlshlib/pylexotron.py,sha256=
|
|
15
|
+
cqlshlib/pylexotron.py,sha256=YHThu6pk9kDNoTOuJTDdXBXbso7eQjmAWqh9qy4w5l0,19835
|
|
16
16
|
cqlshlib/saferscanner.py,sha256=N5ugQIf-ZyJ8w8CtkY-6f8F8OpqgUSJgyMuusA4yWSM,3630
|
|
17
17
|
cqlshlib/sslhandling.py,sha256=GaZ5Mc6skkwgz83CUWnkka6_Nk71Pag-pL-mA2Je9uU,4014
|
|
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.14.dist-info/LICENSE.txt,sha256=65AZdlqRQxiyMBv8nY6itMITk5jx9EkE_jHujbcDzbk,11564
|
|
22
|
+
scylla_cqlsh-6.0.14.dist-info/METADATA,sha256=ee0ZfXoFb7JD1dVOSdOGOwf6SGfg3TuXAohMXlRRJO0,2910
|
|
23
|
+
scylla_cqlsh-6.0.14.dist-info/WHEEL,sha256=EiQJdJz9MF-Ytxz_yg7pufUbIRgyTkoi17ceXLlE8lo,96
|
|
24
|
+
scylla_cqlsh-6.0.14.dist-info/entry_points.txt,sha256=oE4unqgR3WwNkCJDGlMG1HYtCE3nEZZ4d9CIl-JSZyQ,46
|
|
25
|
+
scylla_cqlsh-6.0.14.dist-info/top_level.txt,sha256=PVG-5w7PDG3FoAJH6Rq2I8C0y4cKa2KOW75GxjHkmQ4,24
|
|
26
|
+
scylla_cqlsh-6.0.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|