diff --git a/swiftide-integrations/src/redb/mod.rs b/swiftide-integrations/src/redb/mod.rs index 6096885a..26a6d134 100644 --- a/swiftide-integrations/src/redb/mod.rs +++ b/swiftide-integrations/src/redb/mod.rs @@ -77,8 +77,11 @@ impl Redb { format!("{}.{}", self.cache_key_prefix, node.id()) } - fn table_definition(&self) -> redb::TableDefinition { - // TODO: Should this be static? + pub fn table_definition(&self) -> redb::TableDefinition { redb::TableDefinition::::new(&self.table_name) } + + pub fn database(&self) -> &redb::Database { + &self.database + } }