refactor!: use SQLite and SQLAlchemy for database backend (#332)

* use sqlite + sqlalchemy as a database backend

* change entries getter

* page filterstate.page_size persistent

* add test for entry.id filter

* fix closing library

* fix tag search, adding field

* add field position

* add fields reordering

* use folder

* take field position into consideration

* fix adding tag

* fix test

* try to catch the correct exception, moron

* dont expunge subtags

* DRY models

* rename LibraryField, add is_default property

* remove field.position unique constraint
This commit is contained in:
yed
2024-09-09 12:06:01 +07:00
committed by GitHub
parent 67f7e4dcf9
commit e5e7b8afc6
85 changed files with 4803 additions and 6752 deletions

View File

@@ -10,3 +10,5 @@ numpy==1.26.4
rawpy==0.21.0
pillow-heif==0.16.0
chardet==5.2.0
structlog==24.4.0
SQLAlchemy==2.0.34