row-to-domain conversions, date/uuid utils Eliminates 39 map_err copies, consolidates parse_uuid/parse_datetime/ datetime_to_str/format_year_month, extracts 7 shared row-to-domain conversion functions (movie, review, watchlist, stats, user_summary). Row structs stay per-adapter (FromRow is db-specific), only conversion logic is shared. Net -281 lines.
28 lines
665 B
TOML
28 lines
665 B
TOML
[package]
|
|
name = "sqlite"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
sqlx = { version = "0.8.6", features = [
|
|
"runtime-tokio-rustls",
|
|
"sqlite",
|
|
"uuid",
|
|
"macros",
|
|
] }
|
|
|
|
adapter-common = { workspace = true }
|
|
domain = { workspace = true }
|
|
sqlite-federation = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
uuid = { workspace = true }
|
|
chrono = { workspace = true }
|
|
tracing = { workspace = true }
|
|
async-trait = { workspace = true }
|
|
tokio = { workspace = true }
|
|
futures = { workspace = true }
|
|
bytes = { workspace = true }
|
|
async-stream = { workspace = true }
|