🚑 修复sqlite连接问题

This commit is contained in:
HibiKier 2025-07-14 22:52:32 +08:00
parent 46a0768a45
commit f693012927

View File

@ -404,7 +404,7 @@ def get_config(db_url: str) -> dict:
config["connections"]["default"] = {
"engine": "tortoise.backends.sqlite",
"credentials": {
"file_path": parsed.path[1:] or ":memory:",
"file_path": parsed.path or ":memory:",
},
**SQLITE_CONFIG,
}