EditableWorkspaceDb Namespace
Function
Defined in
EditableWorkspaceDb Interface
An editable WorkspaceDb. This is used only by tools to allow administrators to create and modify WorkspaceDb
s.
For CloudSqlite Workspaces, the write token must be obtained before the methods in this interface may be used. Normally
only admins will have write access to Workspaces. Only one admin at at time may be editing a Workspace.
Extends
Methods
Name |
Description |
|
addBlob(rscName: string, val: Uint8Array): void |
Add a new blob resource to this WorkspaceDb. |
|
addFile(rscName: string, localFileName: string, fileExt?: string): void |
Copy the contents of an existing local file into this WorkspaceDb as a file resource. |
|
addString(rscName: string, val: string): void |
Add a new string resource to this WorkspaceDb. |
|
createDb(version?: string): Promise<void> |
|
|
getBlobWriter(rscName: string): SQLiteDb.BlobIO |
Get a BlobIO writer for a previously-added blob WorkspaceResource. |
|
removeBlob(rscName: string): void |
Remove a blob resource. |
|
removeFile(rscName: string): void |
Remove a file resource. |
|
removeString(rscName: string): void |
Remove a string resource. |
|
updateBlob(rscName: string, val: Uint8Array): void |
Update an existing blob resource with a new value, or add it if it does not exist. |
|
updateFile(rscName: string, localFileName: string): void |
Replace an existing file resource with the contents of another local file. |
|
updateString(rscName: string, val: string): void |
Update an existing string resource with a new value, or add it if it does not exist. |
|
Inherited methods
Inherited properties
Defined in
Last Updated: 13 May, 2024