feat: Implement database factory and abstract session store for multi-database support, centralizing service creation in main.rs.

This commit is contained in:
2025-12-25 22:43:05 +01:00
parent 78d9314602
commit b53dbf2ea8
12 changed files with 246 additions and 80 deletions

View File

@@ -7,13 +7,10 @@ edition = "2024"
notes-domain = { path = "../notes-domain" }
async-trait = "0.1.89"
chrono = { version = "0.4.42", features = ["serde"] }
sqlx = { version = "0.8.6", features = [
"sqlite",
"runtime-tokio",
"chrono",
"migrate",
] }
sqlx = { version = "0.8.6", features = ["sqlite", "runtime-tokio", "chrono", "migrate", "postgres"] }
thiserror = "2.0.17"
tokio = { version = "1.48.0", features = ["full"] }
tracing = "0.1"
uuid = { version = "1.19.0", features = ["v4", "serde"] }
tower-sessions = "0.14.0"
tower-sessions-sqlx-store = { version = "0.15.0", features = ["sqlite", "postgres"] }