Skip to main content

install

Function install 

pub fn install(
    store: &Rc<dyn DurableStore>,
    package: &str,
    workspace: &str,
    doc: &mut AutoCommit,
) -> Result<(RecordCheckout, Landing), TransferError>
Expand description

Make doc (from rehome) a record of package in workspace. Refuses to overwrite anything already stored under its id. Open it elsewhere once the Landing has landed.

ยงErrors

A document not scoped to workspace, an occupied id, or storage failure.