This commit is contained in:
müde 2026-05-14 22:27:03 +02:00
parent 6e7fd2e897
commit 2a98e3ca87
4 changed files with 21 additions and 6 deletions

View file

@ -31,8 +31,8 @@ impl Broker {
std::fs::create_dir_all(parent)
.with_context(|| format!("create db parent {}", parent.display()))?;
}
let conn = Connection::open(path)
.with_context(|| format!("open broker db {}", path.display()))?;
let conn =
Connection::open(path).with_context(|| format!("open broker db {}", path.display()))?;
conn.execute_batch(SCHEMA).context("apply broker schema")?;
Ok(Self {
conn: Mutex::new(conn),