python-general-be-lib 0.4.0__py3-none-any.whl → 0.4.2__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.
@@ -14,7 +14,13 @@ class JsonHandler(BaseHandler):
14
14
 
15
15
  def __init__(self, columns: ReadOnlyColumnCollection[str, Column[Any]]):
16
16
  self.columns = columns
17
- self.json_column = {key for key, column in columns.items() if column.type is not None and column.type.python_type == dict}.pop()
17
+ for key, column in columns.items():
18
+ try:
19
+ if column.type.python_type == dict:
20
+ self.json_column = key
21
+ break
22
+ except NotImplementedError:
23
+ continue
18
24
 
19
25
  def prepare_statement(self, stmt: Select | Update | Delete, **where):
20
26
  json_keys = {key for key in where.keys() if key not in self.columns}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-general-be-lib
3
- Version: 0.4.0
3
+ Version: 0.4.2
4
4
  Summary: General purpose backend library — SQLAlchemy CRUD/Geometry repositories, FastAPI exceptions, Pydantic base models, logger utilities.
5
5
  Author-email: Andrea Di Placido <a.diplacido@arpes.it>, "Arpes S.r.l." <it.admin@arpes.it>
6
6
  License: MIT
@@ -21,9 +21,9 @@ general/interface/repository/handler/__init__.py,sha256=PDRZrSEVNJScJdSrFKJIr1PN
21
21
  general/interface/repository/handler/base_handler.py,sha256=hGbkHmCPirbWqVXBvWb7-97bVKpZpI602__ClF407mM,1559
22
22
  general/interface/repository/handler/ilike_handler.py,sha256=dDXSsQR7cROh5azT3lt6zOTvNiD_r17_19NE1EQwOrE,1471
23
23
  general/interface/repository/handler/interval_handler.py,sha256=CuZYX8hLOrglQIme5UrUC8Hd8cfGk3zjQx6V_FpbNMs,1204
24
- general/interface/repository/handler/json_handler.py,sha256=9JrIPAgBh43oVlhSH8kQGUggr29g8-lKeHLnwyuq_fs,969
25
- python_general_be_lib-0.4.0.dist-info/licenses/LICENSE,sha256=iUaO1XZyB9P3Tmog0OILuTisP6vXGe3QKz-4yRTxOFk,1069
26
- python_general_be_lib-0.4.0.dist-info/METADATA,sha256=LMnNyho0oxARLPG0cq5dklmQ2cebUdZepfp9Cdwxvr8,1384
27
- python_general_be_lib-0.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- python_general_be_lib-0.4.0.dist-info/top_level.txt,sha256=tTZePW8_CNUqSgKFd2SEH72ZbnhS0OYjRsgcv0ikSFY,8
29
- python_general_be_lib-0.4.0.dist-info/RECORD,,
24
+ general/interface/repository/handler/json_handler.py,sha256=Cybm3o3o4i1IRE9KF9WNhrt4UHojWmTvAamSrKvI8oc,1079
25
+ python_general_be_lib-0.4.2.dist-info/licenses/LICENSE,sha256=iUaO1XZyB9P3Tmog0OILuTisP6vXGe3QKz-4yRTxOFk,1069
26
+ python_general_be_lib-0.4.2.dist-info/METADATA,sha256=Eemfd7DlAKfaIjk3bE9P9TsBpxKwhneSONsYtpRUbgg,1384
27
+ python_general_be_lib-0.4.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ python_general_be_lib-0.4.2.dist-info/top_level.txt,sha256=tTZePW8_CNUqSgKFd2SEH72ZbnhS0OYjRsgcv0ikSFY,8
29
+ python_general_be_lib-0.4.2.dist-info/RECORD,,