mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-01-13 01:07:57 -05:00
- Add a context manager to the SqliteDatabase class which abstracts away creating a transaction, committing it on success and rolling back on error. - Use it everywhere. The context manager should be exited before returning results. No business logic changes should be present.
12 KiB
12 KiB