Skip to main content

save

Function save 

Source
pub async fn save<T: Serialize>(
    uri: &str,
    table: &str,
    doc: &T,
    expected: Option<u64>,
    by: &str,
) -> Result<u64>
Expand description

Save doc as by if nobody saved since expected (the version it was loaded at).