Skip to main content

attach

Function attach 

Source
pub async fn attach(
    pool: &Pool,
    target: &Target,
    laboratory_id: &str,
) -> Result<bool, Error>
Expand description

Attach laboratory_id to target. Returns true if a row was inserted, false if it was already attached. Caller holds the agent lock, so the select-then-insert is race-free.