Skip to main content

create_or_get_workspace

Function create_or_get_workspace 

Source
pub fn create_or_get_workspace(name: &str) -> Result<WorkspaceRecord>
Expand description

Create the named workspace, or return the concurrently-created winner.

Interactive setup uses this operation after presenting a snapshot of the workspace list. Several selectors can therefore submit the same normalized name legitimately. Explicit database creation remains strict through create_workspace.