python-general-be-lib 0.7.0__py3-none-any.whl → 0.7.1__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.
@@ -703,7 +703,7 @@ class CrudRepository[Entity: Base | Type[Base]]:
703
703
 
704
704
  key_col, value_col = self.columns[key], self.columns[value]
705
705
  if isinstance(key_col.type, ARRAY):
706
- pairs = func.unnest(key_col, value_col).table_valued("k", "v")
706
+ pairs = func.unnest(key_col, value_col).table_valued("k", "v", joins_implicitly=True).render_derived()
707
707
  stmt = select(pairs.c.k, pairs.c.v).select_from(self.entity, pairs).distinct()
708
708
  else:
709
709
  stmt = select(key_col, value_col).distinct()
@@ -83,9 +83,9 @@ class IntervalHandler(BaseHandler):
83
83
  from_condition = where.pop(self.from_alias, None)
84
84
  to_condition = where.pop(self.to_alias, None) if not self.between else from_condition
85
85
  if from_condition:
86
- stmt = stmt.where(self.columns[self.from_] >= from_condition)
86
+ stmt = stmt.where(self.columns[self.from_] <= from_condition)
87
87
  if to_condition:
88
- condition = self.columns[self.to_] <= to_condition
88
+ condition = self.columns[self.to_] >= to_condition
89
89
  if self.inf_is_none:
90
90
  condition = or_(condition, self.columns[self.to_] == None)
91
91
  stmt = stmt.where(condition)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-general-be-lib
3
- Version: 0.7.0
3
+ Version: 0.7.1
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
@@ -13,20 +13,20 @@ general/interface/metadata/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJ
13
13
  general/interface/metadata/crud_metadata.py,sha256=wBBFfwq7xUu1sDlAg14qTAToYtSf6omcEOu2oLn-j5w,22672
14
14
  general/interface/metadata/geom_metadata.py,sha256=kc6jkWis-WPdWAP-hN6U97ENVjNjny5NE2j-llwZYOQ,11998
15
15
  general/interface/repository/__init__.py,sha256=EcRukwf61Ua-9-JfM_ingVv1wXNRV8HBrrWwjj8m23w,136
16
- general/interface/repository/crud_repository.py,sha256=coAL3ubvlAFEmwnkI5fOysbHdHBGYB6sRGgJF8r4TZI,35311
16
+ general/interface/repository/crud_repository.py,sha256=-68XWLGeUG-knvJ6wAaf8uOwTs5ZK9h4H4N2mN1HeGY,35351
17
17
  general/interface/repository/geometry_repository.py,sha256=ULU-FnDATojHLDrObLPyAA3KErgX_tyYEeTU8h2O4Hs,11989
18
18
  general/interface/repository/many_to_many_repository.py,sha256=iEhWyD8nPZSAPL8Z2wXrK-aRBnoh3evaSN-voaf0EP0,8662
19
19
  general/interface/repository/view_repository.py,sha256=Rr9toRVop0sLpPwo9QvBDJgLQnB0ca--mp-hiwjGrzE,5835
20
20
  general/interface/repository/handler/__init__.py,sha256=J-fc-5Dl_C821oy_EVRdyU-L2iXiNFriYJDbK4ODIMM,184
21
21
  general/interface/repository/handler/base_handler.py,sha256=jedf7ACFPlYKHC9U9ZpVN4vCC0EXO3s4Rtyn15kKi_w,3558
22
22
  general/interface/repository/handler/ilike_handler.py,sha256=_HHTvj6Tm1L-WvUy1S9faRChoRZni11i9mv76I4Xak0,3919
23
- general/interface/repository/handler/interval_handler.py,sha256=XxMQr6UuWnoCtbOOO7l80_Yja_aPKYtHhDfhFCRMaKg,4135
23
+ general/interface/repository/handler/interval_handler.py,sha256=LGg9MQyalTmlxthdzlIJXv5WT58NEz1QMUB-06pNR7M,4135
24
24
  general/interface/repository/handler/json_handler.py,sha256=7bS59seB-It5KHsWXTbHGsEvbQZ6lYyvX-d29BcRLVE,2956
25
25
  general/interface/repository/handler/json_ilike_handler.py,sha256=yDuKER3yqtnHpVWndF8PVEaqDThcq1EhZzLaqxbQ0bU,4491
26
26
  general/interface/repository/handler/or_handler.py,sha256=v97QMQwqrhTpfpZQWfvL6HC4lM9kjMEmY0-Sps968oI,3818
27
27
  general/interface/repository/handler/statement_manager.py,sha256=sGDMU4fPkF0_9-SbDmAw8Vpel1Z7eImBs8fHO-5Lr_0,4429
28
- python_general_be_lib-0.7.0.dist-info/licenses/LICENSE,sha256=iUaO1XZyB9P3Tmog0OILuTisP6vXGe3QKz-4yRTxOFk,1069
29
- python_general_be_lib-0.7.0.dist-info/METADATA,sha256=MYAC_VO9xBrhFGETHyaU6d70Wqy0tQYypXp_gDIDdA0,1384
30
- python_general_be_lib-0.7.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
- python_general_be_lib-0.7.0.dist-info/top_level.txt,sha256=tTZePW8_CNUqSgKFd2SEH72ZbnhS0OYjRsgcv0ikSFY,8
32
- python_general_be_lib-0.7.0.dist-info/RECORD,,
28
+ python_general_be_lib-0.7.1.dist-info/licenses/LICENSE,sha256=iUaO1XZyB9P3Tmog0OILuTisP6vXGe3QKz-4yRTxOFk,1069
29
+ python_general_be_lib-0.7.1.dist-info/METADATA,sha256=WEDCiuFY7P2ToCxtUhOOxMaYhtYuyDF9GnaQHLO_eBY,1384
30
+ python_general_be_lib-0.7.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
+ python_general_be_lib-0.7.1.dist-info/top_level.txt,sha256=tTZePW8_CNUqSgKFd2SEH72ZbnhS0OYjRsgcv0ikSFY,8
32
+ python_general_be_lib-0.7.1.dist-info/RECORD,,