UNPKG

@itwin/core-backend

Version:
31 lines 1.55 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ /** @packageDocumentation * @module Workspace */ import { WorkspaceSqliteDb } from "../internal/workspace/WorkspaceSqliteDb"; import { constructWorkspaceEditor } from "../internal/workspace/WorkspaceImpl"; import { _implementationProhibited } from "../internal/Symbols"; /** @beta */ export var WorkspaceEditor; (function (WorkspaceEditor) { /** * Create a new [[WorkspaceEditor]] for creating new versions of [[WorkspaceDb]]s. * @note the caller becomes the owner of the Workspace.Editor and is responsible for calling [[WorkspaceEditor.close]] on it when they are finished using it. * @note It is illegal to have more than one Workspace.Editor active in a single session. */ function construct() { return constructWorkspaceEditor(); } WorkspaceEditor.construct = construct; /** * Create a new, empty, [[EditableWorkspaceDb]] file on the local filesystem for importing [[Workspace]] resources. */ function createEmptyDb(args) { WorkspaceSqliteDb.createNewDb(args.localFileName, args); } WorkspaceEditor.createEmptyDb = createEmptyDb; })(WorkspaceEditor || (WorkspaceEditor = {})); //# sourceMappingURL=WorkspaceEditor.js.map