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.
1 parent be2dc9b commit c375746Copy full SHA for c375746
tifeatures/db.py
@@ -27,7 +27,9 @@ async def con_init(conn):
27
28
29
async def connect_to_db(
30
- app: FastAPI, settings: Optional[PostgresSettings] = None
+ app: FastAPI,
31
+ settings: Optional[PostgresSettings] = None,
32
+ **kwargs,
33
) -> None:
34
"""Connect."""
35
if not settings:
@@ -40,6 +42,7 @@ async def connect_to_db(
40
42
max_queries=settings.db_max_queries,
41
43
max_inactive_connection_lifetime=settings.db_max_inactive_conn_lifetime,
44
init=con_init,
45
46
)
47
48
0 commit comments