make Index::get_version public

This commit is contained in:
Louis Dureuil 2025-04-24 14:27:48 +02:00
parent 9fd9fcb03e
commit 29b947ee43
No known key found for this signature in database

View File

@ -374,7 +374,7 @@ impl Index {
} }
/// Get the version of the database. `None` if it was never set. /// Get the version of the database. `None` if it was never set.
pub(crate) fn get_version(&self, rtxn: &RoTxn<'_>) -> heed::Result<Option<(u32, u32, u32)>> { pub fn get_version(&self, rtxn: &RoTxn<'_>) -> heed::Result<Option<(u32, u32, u32)>> {
self.main.remap_types::<Str, VersionCodec>().get(rtxn, main_key::VERSION_KEY) self.main.remap_types::<Str, VersionCodec>().get(rtxn, main_key::VERSION_KEY)
} }