aiteamutils 0.2.61__tar.gz → 0.2.62__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aiteamutils
3
- Version: 0.2.61
3
+ Version: 0.2.62
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
@@ -26,13 +26,23 @@ class BaseRepository(Generic[ModelType]):
26
26
  source_function=f"{self.__class__.__name__}.model"
27
27
  )
28
28
 
29
- self.session = session
29
+ self._session = session
30
30
  self.model = model
31
31
 
32
32
  @property
33
33
  def session(self) -> AsyncSession:
34
34
  return self._session
35
35
 
36
+ @session.setter
37
+ def session(self, value: AsyncSession):
38
+ if value is None:
39
+ raise CustomException(
40
+ ErrorCode.DB_CONNECTION_ERROR,
41
+ detail="Session cannot be None",
42
+ source_function=f"{self.__class__.__name__}.session"
43
+ )
44
+ self._session = value
45
+
36
46
  async def list(
37
47
  self,
38
48
  skip: int = 0,
@@ -45,7 +55,7 @@ class BaseRepository(Generic[ModelType]):
45
55
  """
46
56
  # 기본 CRUD 작업 호출
47
57
  return await list_entities(
48
- session=self.db_session,
58
+ session=self.session,
49
59
  model=self.model,
50
60
  skip=skip,
51
61
  limit=limit,
@@ -0,0 +1,2 @@
1
+ """버전 정보"""
2
+ __version__ = "0.2.62"
@@ -1,2 +0,0 @@
1
- """버전 정보"""
2
- __version__ = "0.2.61"
File without changes
File without changes
File without changes
File without changes