MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / delete

Function delete

projects/CRUD-with-postgresql/main.py:159–163  ·  view source on GitHub ↗
(key, value)

Source from the content-addressed store, hash-verified

157
158 # Delete a entry from the table
159 def delete(key, value):
160 table()
161 cursor.execute(f"DELETE from dbview WHERE {key}='{value}'")
162 console.log(":green_circle: Successfully Updated Database")
163 table()
164
165 # Drop the table
166 def drop():

Callers 1

main.pyFile · 0.85

Calls 2

tableFunction · 0.85
executeMethod · 0.45

Tested by

no test coverage detected