maleo-database 0.0.1__py3-none-any.whl → 0.0.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.
@@ -47,26 +47,6 @@ class SessionManager:
47
47
  finally:
48
48
  session.close()
49
49
 
50
- # Overloaded inject methods
51
- @overload
52
- def inject(
53
- self, connection: Literal[Connection.ASYNC]
54
- ) -> AsyncGenerator[AsyncSession, None]: ...
55
-
56
- @overload
57
- def inject(
58
- self, connection: Literal[Connection.SYNC]
59
- ) -> Generator[Session, None, None]: ...
60
-
61
- def inject(
62
- self, connection: Connection = Connection.ASYNC
63
- ) -> Union[AsyncGenerator[AsyncSession, None], Generator[Session, None, None]]:
64
- """Returns a generator for dependency injection."""
65
- if connection is Connection.ASYNC:
66
- return self._async_session_handler()
67
- else:
68
- return self._sync_session_handler()
69
-
70
50
  # Overloaded context manager methods
71
51
  @overload
72
52
  def get(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-database
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: Database package for MaleoSuite
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: Proprietary
@@ -6,7 +6,7 @@ maleo/database/config/connection.py,sha256=lfnEE69355CNtPVlfoXaIu-IWiw4VPEkiY9tf
6
6
  maleo/database/config/identifier.py,sha256=b1MjhoKl3h7xJe1eVIj1wjvYH9BrjHzKnjzdjaEaTeQ,626
7
7
  maleo/database/config/pooling.py,sha256=tVJTxFV-fSEp4xJEVVLkTHFhhKEClSTGDQw5_pqLZgo,9246
8
8
  maleo/database/managers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- maleo/database/managers/session.py,sha256=qXNKxdBaY6tFqkMnj-dOLutdB5BosdsrmF60z1ooafE,4428
9
+ maleo/database/managers/session.py,sha256=47V3GoDROTF369Y2x5e6xOPRmgzDr4pnRUiV4lxWyeA,3766
10
10
  maleo/database/managers/clients/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  maleo/database/managers/clients/elasticsearch.py,sha256=2US-S26N2o61iGwZZ8L0baYU7cXzJ8yFKmYFCHZ9sg0,2471
12
12
  maleo/database/managers/clients/mongodb.py,sha256=h20IW1BDvZWBH-XH1U_8quoNMBDV44uyg3AAS2vIXoA,2012
@@ -25,8 +25,8 @@ maleo/database/orm/models/mixins/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
25
25
  maleo/database/orm/models/mixins/identifier.py,sha256=jICVsLUFw_f7TV_aX4KTTs_ycH35MRtRj5boTqctmZo,425
26
26
  maleo/database/orm/models/mixins/status.py,sha256=Jzithn-Hl2ct1AqboGZSXrA35aaQEDvqtaB8oL7KIyo,376
27
27
  maleo/database/orm/models/mixins/timestamp.py,sha256=TWqBTBvgSxcPsK0m7ggVrkHqzlqCM-2Zox7TAwCxd0I,1500
28
- maleo_database-0.0.1.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
29
- maleo_database-0.0.1.dist-info/METADATA,sha256=leFM_T3mKI2qPUA01R-PPKXUg3B52IuR-jkdlZzzKsY,2595
30
- maleo_database-0.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
- maleo_database-0.0.1.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
32
- maleo_database-0.0.1.dist-info/RECORD,,
28
+ maleo_database-0.0.2.dist-info/licenses/LICENSE,sha256=aftGsecnk7TWVX-7KW94FqK4Syy6YSZ8PZEF7EcIp3M,2621
29
+ maleo_database-0.0.2.dist-info/METADATA,sha256=4naqXXa0T4GyJGXBgelanBAQ2mvNHmIdX3be2zFmRp0,2595
30
+ maleo_database-0.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
31
+ maleo_database-0.0.2.dist-info/top_level.txt,sha256=3Tpd1siVsfYoeI9FEOJNYnffx_shzZ3wsPpTvz5bljc,6
32
+ maleo_database-0.0.2.dist-info/RECORD,,