deploy Bundle
fun deployBundle(path: String, databaseName: String, databaseBundle: ByteArray, overwrite: Boolean = true)
Content copied to clipboard
Create a new database from a databaseBundle. Intended to save databases transferred over the network.
Parameters
path
The path to the directory that contains the database file. If the directory does not exists, it will be created.
databaseName
Name of the database to connect to. The actual file name is: $databaseName.db.
databaseBundle
The content of the database file. Typically built with the buildBundle function in "Lib: Blobs".
overwrite
When true, any existing files that belong to this db are deleted from the database directory before creating a new database. The delete is based on file name: $databaseName.db*.