#9 Delete Product box now available

This commit is contained in:
2024-02-08 19:58:49 +00:00
parent b49022f7f9
commit b1ee09e35a
5 changed files with 175 additions and 16 deletions

View File

@ -95,5 +95,13 @@ class ProductController(DatabaseController):
self.do(query, params)
def delete(self):
print("Doing work")
def delete(self, id: int):
params = [
id
]
query = """
DELETE FROM Products
WHERE id = ?
"""
self.do(query, params)