Skip to main content

insert_version

Function insert_version 

Source
fn insert_version(
    conn: &Connection,
    drone_id: &str,
    graph: &DroneGraph,
    saved_by: &str,
    now_ms: i64,
) -> Result<GraphVersion, StoreError>
Expand description

The next version of drone_id and its insert, on conn (a transaction the caller owns). A deferred transaction would let two connections read the same maximum; both callers take the write lock first.