Click or drag to resize

DatabaseCopy Method

Copies a canned database from the given path to a new database with the given name and the configuration. The new database will be created at the directory specified in the configuration. Without given the database configuration, the default configuration that is equivalent to setting all properties in the configuration to null wlil be used.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0713
Syntax
C#
public static void Copy(
	string path,
	string name,
	DatabaseConfiguration config
)

Parameters

path
Type: SystemString
The source database path (i.e. path to the cblite2 folder)
name
Type: SystemString
The name of the new database to be created
config
Type: Couchbase.LiteDatabaseConfiguration
The database configuration for the new database
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if path or name are null
CouchbaseExceptionThrown if an error condition is returned from LiteCore
See Also