pgcom.commuter.Commuter.delete_entry¶
- Commuter.delete_entry(table_name: str, **kwargs: Any) None [source]¶
Delete entry from the table.
Implements a simple query to delete a specific entry from the table. WHERE clause is created from
**kwargs
.- Parameters
table_name – Name of the database table.
**kwargs – Parameters to create WHERE clause.
Examples
Delete rows with version=100 from the table.
>>> self.delete_entry("dict_versions", version=100)