Derive Macro Updateable

Source
#[derive(Updateable)]
{
    // Attributes available to this derive:
    #[table]
    #[where_clause]
    #[update]
}
Expand description

Derive macro for generating UPDATE queries.

§Attributes

  • table: The name of the table to update
  • where_clause: The WHERE clause for the UPDATE statement
  • update: The columns to update