aiteamutils 0.2.132__py3-none-any.whl → 0.2.133__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
@@ -152,12 +152,8 @@ def process_response(
|
|
152
152
|
if not entity:
|
153
153
|
return None
|
154
154
|
|
155
|
-
print(f"\n[DEBUG] Processing entity: {entity.__class__.__name__}")
|
156
|
-
print(f"[DEBUG] Entity dict: {entity.__dict__}")
|
157
|
-
|
158
155
|
# 모든 필드 처리
|
159
156
|
result = process_columns(entity)
|
160
|
-
print(f"[DEBUG] After process_columns: {result}")
|
161
157
|
|
162
158
|
# Relationship 처리 (이미 로드된 관계만 처리)
|
163
159
|
for relationship in entity.__mapper__.relationships:
|
@@ -201,10 +197,8 @@ def process_response(
|
|
201
197
|
print(f"[DEBUG] Full traceback: {traceback.format_exc()}")
|
202
198
|
result[relationship.key] = None
|
203
199
|
|
204
|
-
print(f"\n[DEBUG] Before response model processing: {result}")
|
205
200
|
# response_model이 있는 경우 필터링
|
206
201
|
if response_model:
|
207
|
-
print(f"[DEBUG] Response model fields: {response_model.model_fields}")
|
208
202
|
# 현재 키 목록을 저장
|
209
203
|
current_keys = list(result.keys())
|
210
204
|
# response_model에 없는 키 제거
|
@@ -215,14 +209,10 @@ def process_response(
|
|
215
209
|
# 모델 검증 및 업데이트
|
216
210
|
try:
|
217
211
|
validated_result = response_model(**result).model_dump()
|
218
|
-
print(f"[DEBUG] After validation: {validated_result}")
|
219
212
|
result.update(validated_result)
|
220
213
|
except Exception as e:
|
221
|
-
print(f"[DEBUG] Error during validation: {str(e)}")
|
222
214
|
import traceback
|
223
|
-
|
224
|
-
|
225
|
-
print(f"[DEBUG] Final result: {result}")
|
215
|
+
|
226
216
|
return result
|
227
217
|
|
228
218
|
##################
|
@@ -480,17 +470,13 @@ async def list_entities(
|
|
480
470
|
List[Dict[str, Any]]: 쿼리 결과 리스트.
|
481
471
|
"""
|
482
472
|
try:
|
483
|
-
|
484
|
-
|
485
|
-
# 명시적 조인 적용
|
473
|
+
# 기본 쿼리 생성
|
486
474
|
if explicit_joins:
|
475
|
+
query = select(model, *explicit_joins)
|
487
476
|
for join_target in explicit_joins:
|
488
477
|
query = query.outerjoin(join_target)
|
489
|
-
|
490
|
-
|
491
|
-
if loading_joins:
|
492
|
-
for join_option in loading_joins:
|
493
|
-
query = query.options(join_option)
|
478
|
+
else:
|
479
|
+
query = select(model)
|
494
480
|
|
495
481
|
# 필터 조건 적용
|
496
482
|
if filters:
|
aiteamutils/version.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
"""버전 정보"""
|
2
|
-
__version__ = "0.2.
|
2
|
+
__version__ = "0.2.133"
|
@@ -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=
|
7
|
+
aiteamutils/database.py,sha256=SEnB4fNAZQWgy2dskElYiTAuDlYjw95yadncv-BWpBQ,21357
|
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=
|
13
|
-
aiteamutils-0.2.
|
14
|
-
aiteamutils-0.2.
|
15
|
-
aiteamutils-0.2.
|
12
|
+
aiteamutils/version.py,sha256=guyL6TqPxOF2ThG4kNJ_7z8Muj_dCOOH5Cf3BbTJkUE,43
|
13
|
+
aiteamutils-0.2.133.dist-info/METADATA,sha256=lsrWtdTLUNKeF1YXUS6EFnVwKPKwbpDggq6vNAJ24JQ,1719
|
14
|
+
aiteamutils-0.2.133.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
15
|
+
aiteamutils-0.2.133.dist-info/RECORD,,
|
File without changes
|