You are here: Configuration > File Configuration > Recovery Mode

Recovery Mode

This option only makes sense when you try to recover a corrupted database.

Turns recovery mode on and off. Recovery mode can be used to try to retrieve as much as possible out of an corrupted database. In recovery mode internal checks are more relaxed. Null or invalid objects may be returned instead of throwing exceptions. Use this method with care as a last resort to get data out of a corrupted database.

IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration();
configuration.File.RecoveryMode = true;
FileConfiguration.cs: Enable recovery mode to open a corrupted database
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration()
configuration.File.RecoveryMode = True
FileConfiguration.vb: Enable recovery mode to open a corrupted database