Function set_database_file

Source
pub fn set_database_file(filepath: String) -> Result<(), Error>
Expand description

check if the new filepath exists or not if exists, it should be a valid database and we only switch to it. if the path don’t exists, we will move our database to that location.