scylla-cqlsh 6.0.12__tar.gz → 6.0.14__tar.gz
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.
- scylla-cqlsh-6.0.14/Dockerfile +20 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/PKG-INFO +1 -1
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/bin/cqlsh.py +11 -4
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlsh/cqlsh.py +11 -4
- scylla-cqlsh-6.0.14/cqlshlib/_version.py +16 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/copyutil.c +15436 -13271
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/copyutil.py +13 -2
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/pylexotron.py +1 -1
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/install.sh +1 -1
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/copyutil.py +13 -2
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/pylexotron.py +1 -1
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/setup.py +12 -7
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/reloc/build_reloc.sh +16 -4
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/requirements.txt +1 -1
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scylla_cqlsh.egg-info/PKG-INFO +1 -1
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/setup.py +12 -7
- scylla-cqlsh-6.0.12/Dockerfile +0 -15
- scylla-cqlsh-6.0.12/cqlshlib/_version.py +0 -4
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/.dockerignore +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/.github/workflows/build-push.yml +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/.github/workflows/dockerhub-description.yml +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/.gitignore +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/LICENSE.txt +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/README.md +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/SCYLLA-VERSION-GEN +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/bin/cqlsh +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlsh/__init__.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlsh/__main__.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/__init__.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/authproviderhandling.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/cql3handling.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/cqlhandling.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/cqlshhandling.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/displaying.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/formatting.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/helptopics.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/saferscanner.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/sslhandling.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/tracing.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/util.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/cqlshlib/wcwidth.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/changelog.template +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/control.template +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/debian/compat +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/debian/copyright +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/debian/rules +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/debian/source/format +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/debian/source/options +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/debian/debian_files_gen.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/dist/redhat/scylla-cqlsh.spec +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/install-dependencies.sh +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/Dockerfile.ubuntu.py3 +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/Dockerfile.ubuntu.py37 +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/Dockerfile.ubuntu.py38 +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/README.asc +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cassandra-cqlsh-tests.sh +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/__init__.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/authproviderhandling.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/cql3handling.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/cqlhandling.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/cqlshhandling.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/displaying.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/formatting.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/helptopics.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/saferscanner.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/sslhandling.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/__init__.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/ansi_colors.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/basecase.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/cassconnect.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/reserved_keywords.txt +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/run_cqlsh.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/complex_auth_provider +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/complex_auth_provider_creds +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/complex_auth_provider_with_pass +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/empty_example +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/full_plain_text_example +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/illegal_example +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/no_classname_example +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/partial_example +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/plain_text_full_creds +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/plain_text_partial_creds +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_authproviderhandling_config/plain_text_partial_example +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_constants.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_copyutil.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_cql_parsing.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_cqlsh_completion.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_cqlsh_output.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_keyspace_init.cql +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/test_unicode.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/test/winpty.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/tracing.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/util.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/cqlshlib/wcwidth.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pylib/requirements.txt +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/pyproject.toml +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/reloc/build_deb.sh +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/reloc/build_rpm.sh +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scripts/create-relocatable-package.py +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scylla_cqlsh.egg-info/SOURCES.txt +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scylla_cqlsh.egg-info/dependency_links.txt +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scylla_cqlsh.egg-info/entry_points.txt +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scylla_cqlsh.egg-info/requires.txt +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/scylla_cqlsh.egg-info/top_level.txt +0 -0
- {scylla-cqlsh-6.0.12 → scylla-cqlsh-6.0.14}/setup.cfg +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
FROM python:3.11-slim-bullseye AS compile-image
|
|
2
|
+
|
|
3
|
+
WORKDIR /usr/src/app
|
|
4
|
+
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get -y install --no-install-recommends git gcc libc6-dev
|
|
5
|
+
|
|
6
|
+
COPY . .
|
|
7
|
+
RUN pip install --user .
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
FROM python:3.11-slim-bullseye AS build-image
|
|
11
|
+
|
|
12
|
+
# Upgrade packages to the latest, pip as well.
|
|
13
|
+
RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade && apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
14
|
+
RUN pip install --upgrade --no-cache-dir pip
|
|
15
|
+
|
|
16
|
+
COPY --from=compile-image /root/.local /root/.local
|
|
17
|
+
|
|
18
|
+
# Make sure scripts in .local are usable:
|
|
19
|
+
ENV PATH=/root/.local/bin:$PATH
|
|
20
|
+
ENTRYPOINT [ "cqlsh" ]
|
|
@@ -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()
|
|
@@ -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()
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# file generated by setuptools_scm
|
|
2
|
+
# don't change, don't track in version control
|
|
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)
|