Write the key/data pairs from all databases in the file to Out. Key values are written for Btree, Hash and Queue databases, but not for Recno databases.

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet52 (in libdb_dotnet52.dll) Version:


public static void Salvage(
	string file,
	DatabaseConfig cfg,
	bool Printable
Visual Basic (Declaration)
Public Shared Sub Salvage ( _
	file As String, _
	cfg As DatabaseConfig, _
	Printable As Boolean _
Visual C++
static void Salvage(
	String^ file, 
	DatabaseConfig^ cfg, 
	bool Printable


Type: System..::.String
The physical file in which the databases to be salvaged are found.
Type: BerkeleyDB..::.DatabaseConfig
Configuration parameters for the databases to be salvaged.
Type: System..::.Boolean
If true and characters in either the key or data items are printing characters (as defined by isprint(3)), use printing characters to represent them. This setting permits users to use standard text editors and tools to modify the contents of databases or selectively remove data from salvager output.

See Also