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 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 See Also