feat: projekte und suche im backend
Projekte pro Benutzer mit Name und Farbe, Clips optional einem Projekt zugeordnet. Löschen eines Projekts verschiebt seine Clips nach "ohne Projekt". Clip-Liste filtert nach Projekt und sucht Teiltexte in Titel und Inhalt, unabhängig von Groß-/Kleinschreibung (auch Umlaute). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
848cff35b3
commit
ff2860f7be
13 files changed
+711
-9
No files matched your search
@@ -7,7 +7,13 @@ from sqlalchemy.orm import Session, sessionmaker
|
||||
from app.config import get_settings
|
||||
|
||||
|
||||
def casefold(value: str | None) -> str | None:
|
||||
return None if value is None else value.casefold()
|
||||
|
||||
|
||||
def _set_sqlite_pragmas(dbapi_connection, _connection_record) -> None:
|
||||
# SQLite's lower() only handles ASCII; this one also folds umlauts and ß for search
|
||||
dbapi_connection.create_function("lc_casefold", 1, casefold, deterministic=True)
|
||||
cursor = dbapi_connection.cursor()
|
||||
cursor.execute("PRAGMA journal_mode=WAL")
|
||||
cursor.execute("PRAGMA foreign_keys=ON")
|
||||
|
||||
Reference in new issue
Block a user