Allow reading the DB URI from a file

This commit is contained in:
2025-04-21 16:24:43 +02:00
parent 899d90424e
commit c3581e330e
2 changed files with 41 additions and 6 deletions

View File

@@ -11,7 +11,7 @@ from xmpp_api.db.bot import Bot, AllowedJid
def get_engine(config: ConfigDep) -> Engine:
return create_engine(
config.database,
config.database.uri,
connect_args={
"check_same_thread": False,
},