velocity-python 0.0.96__py3-none-any.whl → 0.0.98__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/aws/handlers/sqs_handler.py +0 -6
- velocity/db/servers/tablehelper.py +15 -2
- {velocity_python-0.0.96.dist-info → velocity_python-0.0.98.dist-info}/METADATA +1 -1
- {velocity_python-0.0.96.dist-info → velocity_python-0.0.98.dist-info}/RECORD +8 -8
- {velocity_python-0.0.96.dist-info → velocity_python-0.0.98.dist-info}/WHEEL +0 -0
- {velocity_python-0.0.96.dist-info → velocity_python-0.0.98.dist-info}/licenses/LICENSE +0 -0
- {velocity_python-0.0.96.dist-info → velocity_python-0.0.98.dist-info}/top_level.txt +0 -0
velocity/__init__.py
CHANGED
|
@@ -40,12 +40,6 @@ class SqsHandler:
|
|
|
40
40
|
self.skip_action = False
|
|
41
41
|
self.ContextClass = context_class
|
|
42
42
|
|
|
43
|
-
self.aws_event = aws_event
|
|
44
|
-
self.aws_context = aws_context
|
|
45
|
-
self.serve_action_default = True
|
|
46
|
-
self.skip_action = False
|
|
47
|
-
self.ContextClass = context_class
|
|
48
|
-
|
|
49
43
|
def log(self, tx, message: str, function: Optional[str] = None):
|
|
50
44
|
"""
|
|
51
45
|
Log a message to the system log table.
|
|
@@ -182,7 +182,9 @@ class TableHelper:
|
|
|
182
182
|
if options is None:
|
|
183
183
|
options = {"alias_column": True, "alias_table": False, "alias_only": False}
|
|
184
184
|
|
|
185
|
-
column
|
|
185
|
+
# Remove operator first, then extract column name
|
|
186
|
+
key_without_operator = self.remove_operator(key)
|
|
187
|
+
column = self.extract_column_name(key_without_operator)
|
|
186
188
|
if not column:
|
|
187
189
|
if options.get("bypass_on_error"):
|
|
188
190
|
return key
|
|
@@ -339,8 +341,19 @@ class TableHelper:
|
|
|
339
341
|
expr = expr.split(",")[0].strip()
|
|
340
342
|
|
|
341
343
|
# Extract column name (basic or dotted like table.col or *)
|
|
344
|
+
# Handle asterisk separately since \b doesn't work with non-word characters
|
|
345
|
+
if expr.strip() == "*":
|
|
346
|
+
return "*"
|
|
347
|
+
|
|
348
|
+
# Check for pointer syntax (>)
|
|
349
|
+
if ">" in expr:
|
|
350
|
+
# For pointer syntax, return the whole expression
|
|
351
|
+
pointer_match = re.search(r"([a-zA-Z_][\w]*>[a-zA-Z_][\w]*)", expr)
|
|
352
|
+
if pointer_match:
|
|
353
|
+
return pointer_match.group(1)
|
|
354
|
+
|
|
342
355
|
match = re.search(
|
|
343
|
-
r"\b([a-zA-Z_][\w]
|
|
356
|
+
r"\b([a-zA-Z_][\w]*\.\*|[a-zA-Z_][\w]*(?:\.[a-zA-Z_][\w]*)?)\b", expr
|
|
344
357
|
)
|
|
345
358
|
return match.group(1) if match else None
|
|
346
359
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
velocity/__init__.py,sha256=
|
|
1
|
+
velocity/__init__.py,sha256=O-57F3X343WA-gKPiQGHVnZP1MzGg0pLJt9430h-6gQ,106
|
|
2
2
|
velocity/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
velocity/app/invoices.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
velocity/app/orders.py,sha256=W-HAXEwY8-IFXbKh82HnMeRVZM7P-TWGEQOWtkLIzI4,6298
|
|
@@ -10,7 +10,7 @@ velocity/aws/handlers/__init__.py,sha256=xnpFZJVlC2uoeeFW4zuPST8wA8ajaQDky5Y6iXZ
|
|
|
10
10
|
velocity/aws/handlers/context.py,sha256=UIjNR83y2NSIyK8HMPX8t5tpJHFNabiZvNgmmdQL3HA,1822
|
|
11
11
|
velocity/aws/handlers/lambda_handler.py,sha256=0KrT6UIxDILzBRpoRSvwDgHpQ-vWfubcZFOCbJsewDc,6516
|
|
12
12
|
velocity/aws/handlers/response.py,sha256=LXhtizLKnVBWjtHyE0h0bk-NYDrRpj7CHa7tRz9KkC4,9324
|
|
13
|
-
velocity/aws/handlers/sqs_handler.py,sha256=
|
|
13
|
+
velocity/aws/handlers/sqs_handler.py,sha256=nqt8NMOc5yO-L6CZo7NjgR8Q4KPKTDFBO-0eHu6oxkY,7149
|
|
14
14
|
velocity/db/__init__.py,sha256=vrn2AFNAKaqTdnPwLFS0OcREcCtzUCOodlmH54U7ADg,200
|
|
15
15
|
velocity/db/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
velocity/db/core/column.py,sha256=tAr8tL3a2nyaYpNHhGl508FrY_pGZTzyYgjAV5CEBv4,4092
|
|
@@ -30,7 +30,7 @@ velocity/db/servers/sqlite.py,sha256=X210a5pENT9PiVK7f16fxXzFwEsq8fSe58Vouv2xqlk
|
|
|
30
30
|
velocity/db/servers/sqlite_reserved.py,sha256=-xmjl-Hgu6lKqkCAXq_6U8_aJX6gvaMgLMLdCt-Ej7o,3006
|
|
31
31
|
velocity/db/servers/sqlserver.py,sha256=0uGLEWRXiUhrOVTpEA1zvaKq1mcfiaCDp9r7gX-N71g,29914
|
|
32
32
|
velocity/db/servers/sqlserver_reserved.py,sha256=3LGQYU0qfvk6AbKety96gbzzfLbZ0dNHDPLxKGvvi4Q,4596
|
|
33
|
-
velocity/db/servers/tablehelper.py,sha256=
|
|
33
|
+
velocity/db/servers/tablehelper.py,sha256=qOHHKgQgUC0t_AUcY5oaPfjkRJS9wnMI4YJCDIb9Rew,22583
|
|
34
34
|
velocity/db/servers/postgres/__init__.py,sha256=FUvXO3R5CtKCTGRim1geisIxXbiG_aQ_VFSQX9HGsjw,529
|
|
35
35
|
velocity/db/servers/postgres/operators.py,sha256=A2T1qFwhzPl0fdXVhLZJhh5Qfx-qF8oZsDnxnq2n_V8,389
|
|
36
36
|
velocity/db/servers/postgres/reserved.py,sha256=5tKLaqFV-HrWRj-nsrxl5KGbmeM3ukn_bPZK36XEu8M,3648
|
|
@@ -47,8 +47,8 @@ velocity/misc/tools.py,sha256=_bGneHHA_BV-kUonzw5H3hdJ5AOJRCKfzhgpkFbGqIo,1502
|
|
|
47
47
|
velocity/misc/conv/__init__.py,sha256=MLYF58QHjzfDSxb1rdnmLnuEQCa3gnhzzZ30CwZVvQo,40
|
|
48
48
|
velocity/misc/conv/iconv.py,sha256=d4_BucW8HTIkGNurJ7GWrtuptqUf-9t79ObzjJ5N76U,10603
|
|
49
49
|
velocity/misc/conv/oconv.py,sha256=h5Lo05DqOQnxoD3y6Px_MQP_V-pBbWf8Hkgkb9Xp1jk,6032
|
|
50
|
-
velocity_python-0.0.
|
|
51
|
-
velocity_python-0.0.
|
|
52
|
-
velocity_python-0.0.
|
|
53
|
-
velocity_python-0.0.
|
|
54
|
-
velocity_python-0.0.
|
|
50
|
+
velocity_python-0.0.98.dist-info/licenses/LICENSE,sha256=aoN245GG8s9oRUU89KNiGTU4_4OtnNmVi4hQeChg6rM,1076
|
|
51
|
+
velocity_python-0.0.98.dist-info/METADATA,sha256=Rku_t3HhYXhu2YvIwrFe7ew6m82pAe5edjwXmtdZY5M,33022
|
|
52
|
+
velocity_python-0.0.98.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
53
|
+
velocity_python-0.0.98.dist-info/top_level.txt,sha256=JW2vJPmodgdgSz7H6yoZvnxF8S3fTMIv-YJWCT1sNW0,9
|
|
54
|
+
velocity_python-0.0.98.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|