Function reindeer::open

source ·
pub fn open<P>(path: P) -> Result<Db, Error>where
    P: AsRef<Path>,
Expand description

Opens a sled database to store Entities. The resulting Db object can be copied accross threads. This is a re-export of sled::open.

Opens a Db with a default configuration at the specified path. This will create a new storage directory at the specified path if it does not already exist. You can use the Db::was_recovered method to determine if your database was recovered from a previous instance. You can use Config::create_new if you want to increase the chances that the database will be freshly created.