diff options
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/store.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/shared/src/store.rs b/shared/src/store.rs index 976960e..37e3ab1 100644 --- a/shared/src/store.rs +++ b/shared/src/store.rs @@ -28,7 +28,11 @@ pub enum ResourceStore { } impl ResourceStore { pub fn new_persistent(path: &Path) -> Result<Self> { - Ok(Self::Redb(Database::create(path)?)) + let db = Database::create(path)?; + let txn = db.begin_write()?; + txn.open_table(T_ENTRIES)?; + txn.commit()?; + Ok(Self::Redb(db)) } pub fn new_memory() -> Self { Self::Memory(HashMap::new().into()) |