Skip to main content

update_by_id

Update a row in a table by its ID.

Parameters

NameDescriptionTypeDefault
table (required)Name of the table to update.strNone
id (required)ID of the row to update.strNone
values (required)Dictionary (or dataclass) of column-value pairs to set. Optional[dict]: The updated row, or None if no row matches.AnyNone