Skip to main content

increment

Function increment 

Source
pub async fn increment<T>(
    partition_key: &T::PK,
    sort_key: Option<&T::SK>,
    field: &str,
    increment_by: u64,
) -> Result<UpdateItemOutput, Error>
where T: DynamoTable, T::PK: Display + Clone + Send + Sync + Debug, T::SK: Display + Clone + Send + Sync + Debug,
Expand description

Increment field by value