1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Add support for sqlite database (#8444)

* Add support for sqlite database

* fix
This commit is contained in:
pythongosssss
2025-06-11 21:43:39 +01:00
committed by GitHub
parent 9685d4f3c3
commit 50c605e957
11 changed files with 345 additions and 13 deletions

View File

@@ -203,6 +203,11 @@ parser.add_argument(
help="Set the base URL for the ComfyUI API. (default: https://api.comfy.org)",
)
database_default_path = os.path.abspath(
os.path.join(os.path.dirname(__file__), "..", "user", "comfyui.db")
)
parser.add_argument("--database-url", type=str, default=f"sqlite:///{database_default_path}", help="Specify the database URL, e.g. for an in-memory database you can use 'sqlite:///:memory:'.")
if comfy.options.args_parsing:
args = parser.parse_args()
else: