python-glowplug 0.3.7__py3-none-any.whl → 0.3.9__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.
glowplug/driver/pg.py CHANGED
@@ -50,10 +50,12 @@ class PostgresDriver(DbDriver):
50
50
  if self.maintenance_db:
51
51
  base_url = f"{base_url}/{self.maintenance_db}"
52
52
  engine = create_async_engine(
53
- f"postgresql+asyncpg://{base_url}", echo=self.debug
53
+ f"postgresql+asyncpg://{base_url}",
54
+ echo=self.debug,
55
+ isolation_level="AUTOCOMMIT",
54
56
  )
55
57
  async with engine.connect() as conn:
56
- await conn.execute(f"CREATE DATABASE {db_name}")
58
+ await conn.execute(text(f"CREATE DATABASE {db_name}"))
57
59
  await engine.dispose()
58
60
 
59
61
  @property
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-glowplug
3
- Version: 0.3.7
3
+ Version: 0.3.9
4
4
  Summary: A collection of utilities for common DB maintenance operations in SQLAlchemy
5
5
  Home-page: https://github.com/jnu/python-glowplug
6
6
  License: MIT
@@ -3,9 +3,9 @@ glowplug/config/__init__.py,sha256=0v2Tqk8mJ3v_wRuifXP1-V4x7--xupBxxtrSt2CFqXs,1
3
3
  glowplug/driver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  glowplug/driver/base.py,sha256=IsltopDs-nl4JQsa5kPaegR1UEzOZAnLbGuOeGD7W7I,4107
5
5
  glowplug/driver/mssql.py,sha256=gbrlh2O-LViDwNmwwpme0sNzu2EbgJtQKbp4o_mNrvs,2635
6
- glowplug/driver/pg.py,sha256=4Hw2WG33UzgYyJtWLv8QWZzHhzzsM34TyDuObtxvNmI,2600
6
+ glowplug/driver/pg.py,sha256=nBjo4gjjIuGtkPGMSrdq4essX19pyQeIXs6SlADVNm8,2661
7
7
  glowplug/driver/sqlite.py,sha256=SPhZXYMu_OcdN2r7dr5YJA-3Jsd-deH7peMWYEzX_sE,1070
8
- python_glowplug-0.3.7.dist-info/LICENSE,sha256=HvAzro26TfbigQ3ppmyagEGHIr_UtyQDfU8muTAqWFU,1060
9
- python_glowplug-0.3.7.dist-info/METADATA,sha256=x0b0GhQrhg-GMwSRza84LSSvPErHqwH9Gu0AC4p2uOI,1494
10
- python_glowplug-0.3.7.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
11
- python_glowplug-0.3.7.dist-info/RECORD,,
8
+ python_glowplug-0.3.9.dist-info/LICENSE,sha256=HvAzro26TfbigQ3ppmyagEGHIr_UtyQDfU8muTAqWFU,1060
9
+ python_glowplug-0.3.9.dist-info/METADATA,sha256=vgRcnQ225TOwYHDTVcuTlJMBlPZdmKcsH6OS95PVicw,1494
10
+ python_glowplug-0.3.9.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
11
+ python_glowplug-0.3.9.dist-info/RECORD,,