Function update
Source pub async fn update<T>(client: &Client, entity: T) -> Result<bool, Error>
Expand description
§update
Updates an existing record in the database.
§Parameters
client: Database connection object
entity: Data object containing the update information (must implement SqlQuery and UpdateParams traits)
§Return Value
Result<bool, Error>: On success, returns true; on failure, returns Error