python-glowplug 0.3.5__tar.gz → 0.3.6__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-glowplug
3
- Version: 0.3.5
3
+ Version: 0.3.6
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-glowplug"
3
- version = "0.3.5"
3
+ version = "0.3.6"
4
4
  description = "A collection of utilities for common DB maintenance operations in SQLAlchemy"
5
5
  authors = ["Joe Nudell <jnudell@hks.harvard.edu>"]
6
6
  readme = "README.md"
@@ -90,13 +90,13 @@ class DbDriver(ABC):
90
90
  await conn.run_sync(base.metadata.create_all)
91
91
  await engine.dispose()
92
92
 
93
- def get_async_engine(self) -> AsyncEngine:
93
+ def get_async_engine(self, **kwargs) -> AsyncEngine:
94
94
  """Get an async engine."""
95
- return create_async_engine(self.async_uri, echo=self.debug)
95
+ return create_async_engine(self.async_uri, echo=self.debug, **kwargs)
96
96
 
97
- def get_sync_engine(self) -> Engine:
97
+ def get_sync_engine(self, **kwargs) -> Engine:
98
98
  """Get a sync engine."""
99
- return create_engine(self.sync_uri, echo=self.debug)
99
+ return create_engine(self.sync_uri, echo=self.debug, **kwargs)
100
100
 
101
101
  @cached_property
102
102
  def async_session(self, **kwargs) -> AsyncSession:
File without changes