aiteamutils 0.2.125__py3-none-any.whl → 0.2.126__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.
aiteamutils/database.py CHANGED
@@ -448,14 +448,14 @@ async def list_entities(
448
448
  List[Dict[str, Any]]: 쿼리 결과 리스트.
449
449
  """
450
450
  try:
451
- query = select(model)
451
+ query = select(model, *[join_target for join_target in (explicit_joins or [])])
452
452
 
453
453
  # 명시적 조인 적용
454
454
  if explicit_joins:
455
455
  for join_target in explicit_joins:
456
- query = query.outerjoin(join_target)
456
+ query = query.outerjoin(join_target) # LEFT OUTER JOIN 적용
457
457
 
458
- # 조인 로딩 적용
458
+ # 조인 로딩 적용 (제거 가능)
459
459
  if loading_joins:
460
460
  for join_option in loading_joins:
461
461
  query = query.options(join_option)
@@ -503,12 +503,15 @@ async def get_entity(
503
503
  loading_joins: Optional[List[Any]] = None
504
504
  ) -> ModelType:
505
505
  try:
506
- query = select(model)
506
+ # project 정보도 함께 select
507
+ query = select(model, *[join_target for join_target in (explicit_joins or [])])
507
508
 
509
+ # 명시적 조인 적용
508
510
  if explicit_joins:
509
511
  for join_target in explicit_joins:
510
- query = query.join(join_target)
512
+ query = query.outerjoin(join_target) # LEFT OUTER JOIN 적용
511
513
 
514
+ # 조인 로딩 적용 (제거 가능)
512
515
  if loading_joins:
513
516
  for join_option in loading_joins:
514
517
  query = query.options(join_option)
aiteamutils/version.py CHANGED
@@ -1,2 +1,2 @@
1
1
  """버전 정보"""
2
- __version__ = "0.2.125"
2
+ __version__ = "0.2.126"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiteamutils
3
- Version: 0.2.125
3
+ Version: 0.2.126
4
4
  Summary: AI Team Utilities
5
5
  Project-URL: Homepage, https://github.com/yourusername/aiteamutils
6
6
  Project-URL: Issues, https://github.com/yourusername/aiteamutils/issues
@@ -4,12 +4,12 @@ aiteamutils/base_repository.py,sha256=vzBw3g3jCJetTDblZvZenEGXk89Qu_65_02C7QTcf8
4
4
  aiteamutils/base_service.py,sha256=nHikjwGp29QrQPr2W8Ye9sKxmVS_8prRG3Nu42TU1Ms,10670
5
5
  aiteamutils/cache.py,sha256=07xBGlgAwOTAdY5mnMOQJ5EBxVwe8glVD7DkGEkxCtw,1373
6
6
  aiteamutils/config.py,sha256=YdalpJb70-txhGJAS4aaKglEZAFVWgfzw5BXSWpkUz4,3232
7
- aiteamutils/database.py,sha256=nbPcd1nLMnXxL3FRjZpUD8jAFy3dUAPAPUl6k8HRT-I,19901
7
+ aiteamutils/database.py,sha256=b1s609GlQYiAUobdXZ94qHPvOZ69jny-IQUDq0PWuC8,20213
8
8
  aiteamutils/enums.py,sha256=7WLqlcJqQWtETAga2WAxNp3dJTQIAd2TW-4WzkoHHa8,2498
9
9
  aiteamutils/exceptions.py,sha256=pgf3ersezObyl17wAO3I2fb8m9t2OzWDX1mSjwAWm2Y,16035
10
10
  aiteamutils/security.py,sha256=McUl3t5Z5SyUDVUHymHdDkYyF4YSeg4g9fFMML4W6Kw,11630
11
11
  aiteamutils/validators.py,sha256=msOrha36xWsapm4VAh63YmFq1GVyC9tzZcjXYFCEZ_g,11949
12
- aiteamutils/version.py,sha256=V0JA8FSRO5cp690vOytQsb10C0b1Tj7rxy6iV4tkbXU,43
13
- aiteamutils-0.2.125.dist-info/METADATA,sha256=s5k0XIC8XTLUG0izCb_VDKSSDwh552IJXd7nqdTj3r0,1719
14
- aiteamutils-0.2.125.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- aiteamutils-0.2.125.dist-info/RECORD,,
12
+ aiteamutils/version.py,sha256=29o_ASH6fLqV6c7jVtZ4_4vlsxJS2BL0E8FQfqSnKb4,43
13
+ aiteamutils-0.2.126.dist-info/METADATA,sha256=8Jae6b3EhuJAENU1-0YoBXGKc5BGENkaE7hIHLlNNpU,1719
14
+ aiteamutils-0.2.126.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ aiteamutils-0.2.126.dist-info/RECORD,,