Files
InvokeAI/tests
Alexander Eichhorn 1a06fe0d8d Add SQLModel ORM layer alongside raw SQLite for database portability
Introduces SQLModel (SQLAlchemy + Pydantic) as an ORM layer to enable
future database backend switching (PostgreSQL, MySQL). All services
except session_queue have been migrated to SQLModel-based implementations
while keeping the existing migration system and raw SQLite connection
intact for backwards compatibility.

Key changes:
- Add sqlmodel dependency
- Define SQLModel table models for all 14 database tables
- Extend SqliteDatabase with SQLAlchemy Engine and Session management
- Create SQLModel implementations for 10 services (boards, images,
  workflows, models, users, style presets, app settings, etc.)
- Session queue remains on raw SQLite (Phase 3)
- Add 95 unit tests and 12 performance benchmarks
- Optimize with StaticPool, expire_on_commit=False, and read-only sessions
2026-04-19 04:19:47 +02:00
..
2024-03-01 10:42:33 +11:00
2023-02-24 18:57:02 -08:00
2026-04-16 22:03:05 -04:00
2024-08-08 15:20:43 -04:00
2025-03-25 19:21:14 +11:00
2024-03-01 10:42:33 +11:00