INNER CODE UNIT · Rust
Err
aannoo/hcom · src/db/mod.rs:237
if let Err(e) = crate::paths::ensure_private_db(&self.db_path) {
use crate::log::log_warn;
log_warn(
"native",
"db.secure_fail",
&format!("Failed to re-secure DB after replacement: {}", e),
);
}
match Connection::open(&self.db_path) {
Ok(new_conn) => {
if let Err(e) = new_conn.execute_batch(
"PRAGMA busy_timeout=5000; PRAGMA foreign_keys=ON; PRAGMA journal_mode=WAL;",
) {
use crate::log::log_warn;
log_warn(
"native",
"db.pragma_fail",
&format!("PRAGMA setup failed after reconnect: {}", e),