Click or drag to resize

ManagerReplaceDatabase Method (String, Stream, Boolean)

Replaces or installs a database from a zipped DB folder structure

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public void ReplaceDatabase(
	string name,
	Stream compressedStream,
	bool autoRename
)

Parameters

name
Type: SystemString
The name of the target Database to replace or create.
compressedStream
Type: System.IOStream
The zip stream containing all of the files required by the DB.
autoRename
Type: SystemBoolean
Whether or not to automatically rename the db inside of the zip file. If false, the database name must match the name parameter or an exception is thrown
Remarks
The zip stream must be from a regular PKZip structure compressed with Deflate (*nix command line zip will produce this)
See Also