We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
connect_kwargs
1 parent 4d7587f commit bb12099Copy full SHA for bb12099
litestar_asyncpg/config.py
@@ -139,7 +139,12 @@ def pool_config_dict(self) -> dict[str, Any]:
139
function.
140
"""
141
if self.pool_config:
142
- return simple_asdict(self.pool_config, exclude_empty=True, convert_nested=False)
+ ret = simple_asdict(self.pool_config, exclude_empty=True, convert_nested=False)
143
+ connect_kwargs = ret.pop("connect_kwargs", None)
144
+ if connect_kwargs is not None:
145
+ ret.update(connect_kwargs)
146
+ return ret
147
+
148
msg = "'pool_config' methods can not be used when a 'pool_instance' is provided."
149
raise ImproperlyConfiguredException(msg)
150
0 commit comments