Replace literal SQL with Diesel abstractions

This commit is contained in:
2026-07-18 17:00:32 +02:00
parent a727c9073d
commit ca5eb4e1ac
69 changed files with 3508 additions and 4285 deletions

View File

@@ -3,7 +3,7 @@
use std::collections::BTreeMap;
use std::path::Path;
use rusqlite::Connection;
use crate::db::DbConnection as Connection;
use crate::db::queries::post as post_q;
use crate::engine::EngineResult;
@@ -65,7 +65,7 @@ mod tests {
#[test]
fn calendar_empty_project() {
let mut db = Database::open_in_memory().unwrap();
let db = Database::open_in_memory().unwrap();
let _ = db.migrate();
let tmp = tempfile::tempdir().unwrap();