init db table on first launch

This commit is contained in:
yggverse 2026-04-07 11:30:46 +03:00
parent e1e9f34012
commit 532f87311b

View file

@ -10,7 +10,11 @@ pub struct Database(Db);
impl Database {
pub fn new(path: &PathBuf) -> Result<Self, Error> {
let db = Db::create(path)?;
let write = db.begin_write()?;
{
write.open_table(PROCESSED)?;
}
write.commit()?;
Ok(Self(db))
}