velocity-python 0.0.126__py3-none-any.whl → 0.0.128__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 CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = version = "0.0.126"
1
+ __version__ = version = "0.0.128"
2
2
 
3
3
  from . import aws
4
4
  from . import db
@@ -20,7 +20,7 @@ class Context:
20
20
  self.__args = args
21
21
  self.__postdata = postdata
22
22
  self.__response = response
23
- self.__session = session
23
+ self.__session = {} if session is None else session
24
24
  self.__aws_event = aws_event
25
25
  self.__aws_context = aws_context
26
26
  self.__log = log
@@ -348,10 +348,16 @@ class Engine:
348
348
  f"\n\nSQL Query:\n{self._format_sql_with_params(sql, parameters)}"
349
349
  )
350
350
 
351
+ # Format SQL for logging
352
+ formatted_sql_info = ""
353
+ if sql:
354
+ formatted_sql_info = f" sql={self._format_sql_with_params(sql, parameters)}"
355
+
351
356
  logger.warning(
352
- "Database error caught. Attempting to transform: code=%s message=%s",
357
+ "Database error caught. Attempting to transform: code=%s message=%s%s",
353
358
  error_code,
354
359
  error_message,
360
+ formatted_sql_info,
355
361
  )
356
362
 
357
363
  # Direct error code mapping
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: velocity-python
3
- Version: 0.0.126
3
+ Version: 0.0.128
4
4
  Summary: A rapid application development library for interfacing with data storage
5
5
  Author-email: Velocity Team <info@codeclubs.org>
6
6
  License-Expression: MIT
@@ -1,4 +1,4 @@
1
- velocity/__init__.py,sha256=neeUy4rGNUC51qmIOe7R1BXk6SLZ8VCwu07gb9GgrE8,147
1
+ velocity/__init__.py,sha256=zQ0Q2qkU3osjFiKRk7HW8XMynDw8zQNSmnERDVkQaDI,147
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=fr1oTBjSFfyeMBUXRG06LV4jgwrlwYNL5mbEBleFwf0,6328
@@ -8,7 +8,7 @@ velocity/aws/__init__.py,sha256=0nEsX68Q4I7Z7ybECJnNWsC8QhWOijn4NpaFgyzyfXA,685
8
8
  velocity/aws/amplify.py,sha256=VgSgon0XxboIozz0tKyUohgLIigelhe4W7EH8kwbnLg,15330
9
9
  velocity/aws/handlers/__init__.py,sha256=4-NKj8dBzjYEdIlNdfm_Ip5mI0oOGcpjjBcMwU42yhQ,227
10
10
  velocity/aws/handlers/base_handler.py,sha256=bapdzWss5lXesoLPsVwJo9hQMZLdz7XOubo3sK70xC8,7960
11
- velocity/aws/handlers/context.py,sha256=TXChMFo-WODNSeRA5wkYFldAT57e9Ntz6opMnS-6h48,8386
11
+ velocity/aws/handlers/context.py,sha256=0kPZ8y-XjmBZY5NcexynR5htnWYfF0nwM1n5UH-6c5w,8413
12
12
  velocity/aws/handlers/exceptions.py,sha256=i4wcB8ZSWUHglX2xnesDlWLsU9AMYU72cHCWRBDmjQ8,361
13
13
  velocity/aws/handlers/lambda_handler.py,sha256=Njqu7Xap2t8Z9l89DApFnlhLSohv5oGTKHz2UMoDALA,4431
14
14
  velocity/aws/handlers/response.py,sha256=s2Kw7yv5zAir1mEmfv6yBVIvRcRQ__xyryf1SrvtiRc,9317
@@ -20,7 +20,7 @@ velocity/db/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
20
20
  velocity/db/core/column.py,sha256=tAr8tL3a2nyaYpNHhGl508FrY_pGZTzyYgjAV5CEBv4,4092
21
21
  velocity/db/core/database.py,sha256=3zNGItklu9tZCKsbx2T2vCcU1so8AL9PPL0DLjvaz6s,3554
22
22
  velocity/db/core/decorators.py,sha256=OjWnuvneObKx0RBYlC4_4QrdzwQY6lJ4H0eIMqPBl0s,4557
23
- velocity/db/core/engine.py,sha256=xDjlfDvdQ0A3Ug3w-isgnVAVkKSg0KX0iChhRyPvNJw,18463
23
+ velocity/db/core/engine.py,sha256=fx9r3YhMKqVtP4gPR9hHKULryjwomTBSPDJmZAgrpn0,18668
24
24
  velocity/db/core/result.py,sha256=b0ie3yZAOj9S57x32uFFGKZ95zhImmZ0iXl0X1qYszc,12813
25
25
  velocity/db/core/row.py,sha256=yqxm03uEDy3oSbnkCtKyiqFdSqG3zXTq2HIHYKOvPY4,7291
26
26
  velocity/db/core/sequence.py,sha256=VMBc0ZjGnOaWTwKW6xMNTdP8rZ2umQ8ml4fHTTwuGq4,3904
@@ -50,8 +50,8 @@ velocity/misc/tools.py,sha256=4TWa-ja2gMZJr1EhqTKsJNirvDclCruyRGMttPhCIGw,1487
50
50
  velocity/misc/conv/__init__.py,sha256=qhHFl_UqW5tjPm--6shO171IysWIdH3mmp3uwiQVyqY,70
51
51
  velocity/misc/conv/iconv.py,sha256=16aPWtreHCxmpl5ufku0KWWZj8PIUFI5J1dP0aXyM3o,10794
52
52
  velocity/misc/conv/oconv.py,sha256=h5Lo05DqOQnxoD3y6Px_MQP_V-pBbWf8Hkgkb9Xp1jk,6032
53
- velocity_python-0.0.126.dist-info/licenses/LICENSE,sha256=aoN245GG8s9oRUU89KNiGTU4_4OtnNmVi4hQeChg6rM,1076
54
- velocity_python-0.0.126.dist-info/METADATA,sha256=sYZoJSplNC1ScBO2TZrPOyzlrPrcxl9SOFCRrtN8r7g,34262
55
- velocity_python-0.0.126.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
56
- velocity_python-0.0.126.dist-info/top_level.txt,sha256=JW2vJPmodgdgSz7H6yoZvnxF8S3fTMIv-YJWCT1sNW0,9
57
- velocity_python-0.0.126.dist-info/RECORD,,
53
+ velocity_python-0.0.128.dist-info/licenses/LICENSE,sha256=aoN245GG8s9oRUU89KNiGTU4_4OtnNmVi4hQeChg6rM,1076
54
+ velocity_python-0.0.128.dist-info/METADATA,sha256=z-ONVxVF8G6qGO8rZszDMmWLCrWnuFRZYHaKCjpopsg,34262
55
+ velocity_python-0.0.128.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
56
+ velocity_python-0.0.128.dist-info/top_level.txt,sha256=JW2vJPmodgdgSz7H6yoZvnxF8S3fTMIv-YJWCT1sNW0,9
57
+ velocity_python-0.0.128.dist-info/RECORD,,