prefetch Method

Ensure that the contents of a WorkspaceDb are downloaded into the local cache so that it may be accessed offline. Until the promise is resolved, the WorkspaceDb is not fully downloaded, but it may be safely accessed during the download. To determine the progress of the download, use the localBlocks and totalBlocks values returned by CloudContainer.queryDatabase.

prefetch(): CloudSqlite.CloudPrefetch

throws if this WorkspaceDb is not from a CloudContainer.

Returns - CloudSqlite.CloudPrefetch

a CloudSqlite.CloudPrefetch object that can be used to await and/or cancel the prefetch.

Last Updated: 30 November, 2023