velocity-python 0.0.65__py3-none-any.whl → 0.0.66__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.
Potentially problematic release.
This version of velocity-python might be problematic. Click here for more details.
- velocity/__init__.py +1 -1
- velocity/db/servers/tablehelper.py +5 -0
- {velocity_python-0.0.65.dist-info → velocity_python-0.0.66.dist-info}/METADATA +1 -1
- {velocity_python-0.0.65.dist-info → velocity_python-0.0.66.dist-info}/RECORD +7 -7
- {velocity_python-0.0.65.dist-info → velocity_python-0.0.66.dist-info}/WHEEL +1 -1
- {velocity_python-0.0.65.dist-info → velocity_python-0.0.66.dist-info}/licenses/LICENSE +0 -0
- {velocity_python-0.0.65.dist-info → velocity_python-0.0.66.dist-info}/top_level.txt +0 -0
velocity/__init__.py
CHANGED
|
@@ -144,6 +144,11 @@ class TableHelper:
|
|
|
144
144
|
Extracts the 'bare' column name from an expression, ignoring function calls, operators, etc.
|
|
145
145
|
"""
|
|
146
146
|
expr = sql_expression.replace('"', "")
|
|
147
|
+
|
|
148
|
+
# Remove any alias part (e.g., "as num_donors").
|
|
149
|
+
# This regex removes any trailing alias defined using "as".
|
|
150
|
+
expr = re.sub(r"(?i)\s+as\s+\w+$", "", expr).strip()
|
|
151
|
+
|
|
147
152
|
expr = self.remove_operator(expr)
|
|
148
153
|
if not self.are_parentheses_balanced(expr):
|
|
149
154
|
raise ValueError(f"Unbalanced parentheses in expression: {expr}")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: velocity-python
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.66
|
|
4
4
|
Summary: A rapid application development library for interfacing with data storage
|
|
5
5
|
Author-email: Paul Perez <pperez@codeclubs.org>
|
|
6
6
|
Project-URL: Homepage, https://codeclubs.org/projects/velocity
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
velocity/__init__.py,sha256=
|
|
1
|
+
velocity/__init__.py,sha256=xyG5aYyKP5U2cxz1pPLUsDp9NpDJb92wzwYIorLV0Ro,88
|
|
2
2
|
velocity/aws/__init__.py,sha256=GBTEr02whnCH3TG-BWCpUC3KfHY3uNxD21g0OvsVJnc,598
|
|
3
3
|
velocity/aws/handlers/__init__.py,sha256=xnpFZJVlC2uoeeFW4zuPST8wA8ajaQDky5Y6iXZzi3A,172
|
|
4
4
|
velocity/aws/handlers/context.py,sha256=UIjNR83y2NSIyK8HMPX8t5tpJHFNabiZvNgmmdQL3HA,1822
|
|
@@ -24,7 +24,7 @@ velocity/db/servers/sqlite.py,sha256=X210a5pENT9PiVK7f16fxXzFwEsq8fSe58Vouv2xqlk
|
|
|
24
24
|
velocity/db/servers/sqlite_reserved.py,sha256=-xmjl-Hgu6lKqkCAXq_6U8_aJX6gvaMgLMLdCt-Ej7o,3006
|
|
25
25
|
velocity/db/servers/sqlserver.py,sha256=0uGLEWRXiUhrOVTpEA1zvaKq1mcfiaCDp9r7gX-N71g,29914
|
|
26
26
|
velocity/db/servers/sqlserver_reserved.py,sha256=3LGQYU0qfvk6AbKety96gbzzfLbZ0dNHDPLxKGvvi4Q,4596
|
|
27
|
-
velocity/db/servers/tablehelper.py,sha256=
|
|
27
|
+
velocity/db/servers/tablehelper.py,sha256=8oAbscs3TqCk-kc-RYzWRotYVmh0OG4l1E6RzQVNGU0,10004
|
|
28
28
|
velocity/db/servers/postgres/__init__.py,sha256=n6Ti5USqXME8Df18iklC-D0eI1Hr0szZAeSS3xz5ycQ,464
|
|
29
29
|
velocity/db/servers/postgres/operators.py,sha256=A2T1qFwhzPl0fdXVhLZJhh5Qfx-qF8oZsDnxnq2n_V8,389
|
|
30
30
|
velocity/db/servers/postgres/reserved.py,sha256=5tKLaqFV-HrWRj-nsrxl5KGbmeM3ukn_bPZK36XEu8M,3648
|
|
@@ -40,8 +40,8 @@ velocity/misc/timer.py,sha256=cN3aS0t6HLlhYfF2Ir6ihJehxNrWf9ebaLzXUaWRKEA,1637
|
|
|
40
40
|
velocity/misc/conv/__init__.py,sha256=MLYF58QHjzfDSxb1rdnmLnuEQCa3gnhzzZ30CwZVvQo,40
|
|
41
41
|
velocity/misc/conv/iconv.py,sha256=d4_BucW8HTIkGNurJ7GWrtuptqUf-9t79ObzjJ5N76U,10603
|
|
42
42
|
velocity/misc/conv/oconv.py,sha256=h5Lo05DqOQnxoD3y6Px_MQP_V-pBbWf8Hkgkb9Xp1jk,6032
|
|
43
|
-
velocity_python-0.0.
|
|
44
|
-
velocity_python-0.0.
|
|
45
|
-
velocity_python-0.0.
|
|
46
|
-
velocity_python-0.0.
|
|
47
|
-
velocity_python-0.0.
|
|
43
|
+
velocity_python-0.0.66.dist-info/licenses/LICENSE,sha256=aoN245GG8s9oRUU89KNiGTU4_4OtnNmVi4hQeChg6rM,1076
|
|
44
|
+
velocity_python-0.0.66.dist-info/METADATA,sha256=JIZQIeJNIqNiJDj4WtkAhNGTIJzrg_9XrMYZ2FbuHFo,8541
|
|
45
|
+
velocity_python-0.0.66.dist-info/WHEEL,sha256=1tXe9gY0PYatrMPMDd6jXqjfpz_B-Wqm32CPfRC58XU,91
|
|
46
|
+
velocity_python-0.0.66.dist-info/top_level.txt,sha256=JW2vJPmodgdgSz7H6yoZvnxF8S3fTMIv-YJWCT1sNW0,9
|
|
47
|
+
velocity_python-0.0.66.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|