psychedelicious
ebf5f5d418
feat(db): address feedback, cleanup
...
- use simpler pattern for migration dependencies
- move SqliteDatabase & migration to utility method `init_db`, use this in both the app and tests, ensuring the same db schema is used in both
2023-12-13 11:19:59 +11:00
psychedelicious
0cf7fe43af
feat(db): refactor migrate callbacks to use dependencies, remote pre/post callbacks
2023-12-12 12:35:42 +11:00
psychedelicious
c5ba4f2ea5
feat(db): remove file backups
...
Instead of mucking about with the filesystem, we rely on SQLite transactions to handle failed migrations.
2023-12-12 11:12:46 +11:00
psychedelicious
3414437eea
feat(db): instantiate SqliteMigrator with a SqliteDatabase
...
Simplifies a couple things:
- Init is more straightforward
- It's clear in the migrator that the connection we are working with is related to the SqliteDatabase
2023-12-12 10:46:08 +11:00
psychedelicious
417db71471
feat(db): decouple SqliteDatabase from config object
...
- Simplify init args to path (None means use memory), logger, and verbose
- Add docstrings to SqliteDatabase (it had almost none)
- Update all usages of the class
2023-12-12 10:30:37 +11:00
psychedelicious
ef8284f009
fix(db): fix tests
2023-12-11 16:41:47 +11:00
Lincoln Stein
3b1ff4a7f4
resolve test failure caused by renamed sqlite_database module
2023-12-10 12:59:00 -05:00
Lincoln Stein
7c9f48b84d
fix ruff check
2023-12-04 21:14:02 -05:00
Lincoln Stein
2b583ffcdf
implement review suggestions from @RyanjDick
2023-12-04 21:12:10 -05:00
Lincoln Stein
620b2d477a
implement suggestions from first review by @psychedelicious
2023-12-04 17:08:33 -05:00
Lincoln Stein
dbd0151c0e
make test file path comparison work on windows systems (another fix)
2023-11-26 18:52:25 -05:00
Lincoln Stein
6da508f147
make test file path comparison work on windows systems
2023-11-26 18:40:22 -05:00
Lincoln Stein
8ef596eac7
further changes for ruff
2023-11-26 17:13:31 -05:00
Lincoln Stein
8f4f4d48d5
fix import unsorted import block issues in the tests
2023-11-26 13:37:47 -05:00
Lincoln Stein
8695ad6f59
all features implemented, docs updated, ready for review
2023-11-26 13:18:21 -05:00
Lincoln Stein
19baea1883
all backend features in place; config scanning is failing on controlnet
2023-11-24 19:37:46 -05:00
Lincoln Stein
80bc9be3ab
make install_path and register_path work; refactor model probing
2023-11-23 23:15:32 -05:00