fastapi-rtk 1.0.17__py3-none-any.whl → 1.0.19__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.
fastapi_rtk/_version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.0.17"
1
+ __version__ = "1.0.19"
fastapi_rtk/db.py CHANGED
@@ -285,14 +285,14 @@ class DatabaseSessionManager:
285
285
  """
286
286
  Initializes the tables required for FastAPI RTK to function.
287
287
  """
288
- await self.create_all(
289
- None,
290
- tables=[
291
- table
292
- for key, table in metadata.tables.items()
293
- if key in FASTAPI_RTK_TABLES
294
- ],
295
- )
288
+ async with self.connect() as conn:
289
+ copy_metadata = MetaData()
290
+ for table_name in FASTAPI_RTK_TABLES:
291
+ table = metadata.tables.get(table_name)
292
+ if table is None:
293
+ continue
294
+ table.to_metadata(copy_metadata)
295
+ await self._create_all(conn, copy_metadata)
296
296
 
297
297
  async def close(self):
298
298
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fastapi-rtk
3
- Version: 1.0.17
3
+ Version: 1.0.19
4
4
  Summary: A package that provides a set of tools to build a FastAPI application with a Class-Based CRUD API.
5
5
  Project-URL: Homepage, https://codeberg.org/datatactics/fastapi-rtk
6
6
  Project-URL: Issues, https://codeberg.org/datatactics/fastapi-rtk/issues
@@ -1,9 +1,9 @@
1
1
  fastapi_rtk/__init__.py,sha256=Lg6Er5blOMcbtQSRJMNWbRQ1VX4PWEPMVFm2ie5r8mA,6183
2
- fastapi_rtk/_version.py,sha256=b5lrc3KBf8Kc2uTga-yZSnLhmkk2ipb-eWAaq7t4W1M,23
2
+ fastapi_rtk/_version.py,sha256=3HJlki3WDXw4aYwHo9LB3tzME44RgDb7PUJ_5NVNfA4,23
3
3
  fastapi_rtk/apis.py,sha256=6X_Lhl98m7lKrDRybg2Oe24pLFLJ29eCOQSwCAvpKhY,172
4
4
  fastapi_rtk/config.py,sha256=9PZF9E5i1gxmnsZEprZZKxVHSk0dFEklJSplX9NEqdo,14036
5
5
  fastapi_rtk/const.py,sha256=sEj_cYeerj9pVwbCu0k5Sy1EYpdr1EHzUjqqbnporgc,4905
6
- fastapi_rtk/db.py,sha256=4bNlpG_HqJzMkhgQ4c7kxm1AH82UVWRSD2ajexHp1Cs,24654
6
+ fastapi_rtk/db.py,sha256=BqWXj6zP_HZSSL_cFcF-TXwnI0pBqYp6nYV49-6ZmNs,24790
7
7
  fastapi_rtk/decorators.py,sha256=HqAFSiO0l5_M0idWs0IcY24FdzbAcDQDQoifM_WgZAQ,14515
8
8
  fastapi_rtk/dependencies.py,sha256=jlcsMrh83yrJsgXvpWJet_mjqwDP3nBZfPSg4Lq8KKE,7757
9
9
  fastapi_rtk/exceptions.py,sha256=P0qwd4VkeWFotgMVQHgmdT1NphFQaEznKLFIvJzW4Zs,2594
@@ -126,8 +126,8 @@ fastapi_rtk/utils/timezone.py,sha256=62S0pPWuDFFXxV1YTFCsc4uKiSP_Ba36Fv7S3gYjfhs
126
126
  fastapi_rtk/utils/update_signature.py,sha256=PIzZgNpGEwvDNgQ3G51Zi-QhVV3mbxvUvSwDwf_-yYs,2209
127
127
  fastapi_rtk/utils/use_default_when_none.py,sha256=H2HqhKy_8eYk3i1xijEjuaKak0oWkMIkrdz6T7DK9QU,469
128
128
  fastapi_rtk/utils/werkzeug.py,sha256=1Gv-oyqSmhVGrmNbB9fDqpqJzPpANOzWf4zMMrhW9UA,3245
129
- fastapi_rtk-1.0.17.dist-info/METADATA,sha256=S_nNIMGIQIVzcAjKaZnN7YG7dwvkb8PKYJ1EXWhP2eE,1302
130
- fastapi_rtk-1.0.17.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
131
- fastapi_rtk-1.0.17.dist-info/entry_points.txt,sha256=UuTkxSVIokSlVN28TMhoxzRRUaPxlVRSH3Gsx6yip60,53
132
- fastapi_rtk-1.0.17.dist-info/licenses/LICENSE,sha256=NDrWi4Qwcxal3u1r2lBWGA6TVh3OeW7yMan098mQz98,1073
133
- fastapi_rtk-1.0.17.dist-info/RECORD,,
129
+ fastapi_rtk-1.0.19.dist-info/METADATA,sha256=xyDBHTBp6IWYzxhAauSuMMa_IaWocWHO7xrAfjwZCqo,1302
130
+ fastapi_rtk-1.0.19.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
131
+ fastapi_rtk-1.0.19.dist-info/entry_points.txt,sha256=UuTkxSVIokSlVN28TMhoxzRRUaPxlVRSH3Gsx6yip60,53
132
+ fastapi_rtk-1.0.19.dist-info/licenses/LICENSE,sha256=NDrWi4Qwcxal3u1r2lBWGA6TVh3OeW7yMan098mQz98,1073
133
+ fastapi_rtk-1.0.19.dist-info/RECORD,,