9 lines
221 B
Python
9 lines
221 B
Python
from ..connection import connect
|
|
|
|
|
|
def delete_row(slug, definition, row_id):
|
|
conn = connect(slug)
|
|
conn.execute(f"DELETE FROM {definition['table_name']} WHERE id = ?", (row_id,))
|
|
conn.commit()
|
|
conn.close()
|