pub async fn save<T>(
uri: &str,
table: &str,
doc: &T,
expected: Option<u64>,
by: &str,
) -> Result<u64, Error>where
T: Serialize,Expand description
Save doc as by if nobody saved since expected (the version it was loaded at).