pub async fn update<T>(
transaction: &Transaction<'_>,
entity: T,
) -> Result<bool, Error>Expand description
§update
Updates an existing record in the database within a transaction.
§Parameters
transaction: Transaction objectentity: Data object containing update information (must implement SqlCommand and UpdateParams traits)
§Return Value
Result<bool, Error>: On success, returns true if updated; on failure, returns Error