You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

sql-metadata

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sql-metadata - pypi Package Compare versions

Comparing version
2.19.0
to
2.20.0
+2
-3
PKG-INFO
Metadata-Version: 2.4
Name: sql_metadata
Version: 2.19.0
Version: 2.20.0
Summary: Uses tokenized query returned by python-sqlparse and generates query metadata

@@ -9,6 +9,5 @@ License: MIT

Author-email: maciej.brencz@gmail.com
Requires-Python: >=3.9,<4.0
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10

@@ -15,0 +14,0 @@ Classifier: Programming Language :: Python :: 3.11

+2
-2
[tool.poetry]
name = "sql_metadata"
version = "2.19.0"
version = "2.20.0"
license="MIT"

@@ -16,3 +16,3 @@ description = "Uses tokenized query returned by python-sqlparse and generates query metadata"

[tool.poetry.dependencies]
python = "^3.9"
python = "^3.10"
sqlparse = ">=0.4.1,<0.6.0"

@@ -19,0 +19,0 @@

@@ -450,3 +450,3 @@ # pylint: disable=C0302

@property
def with_names(self) -> List[str]:
def with_names(self) -> List[str]: # noqa: C901
"""

@@ -478,2 +478,8 @@ Returns with statements aliases list from a given query

self._is_in_with_block = False
elif token.next_token and token.next_token.is_as_keyword:
# Malformed SQL like "... AS (...) AS ..."
raise ValueError("This query is wrong")
else:
# Advance token to prevent infinite loop
token = token.next_token
else:

@@ -681,3 +687,3 @@ token = token.next_token

if start_token.is_with_query_start:
raise ValueError("This query is wrong")
raise ValueError("This query is wrong") # pragma: no cover
start_token.is_with_columns_start = True

@@ -684,0 +690,0 @@ start_token.is_nested_function_start = False

@@ -179,3 +179,3 @@ """

and self.previous_token.normalized in [",", "SELECT"]
and self.next_token.normalized in [",", "AS"]
and self.next_token.normalized in [",", "AS", "FROM"]
)

@@ -182,0 +182,0 @@