Delete all rows from the provided tables.
(conn: sqlite3.Connection, table_names: Iterable[str])
| 213 | |
| 214 | |
| 215 | def clear_tables(conn: sqlite3.Connection, table_names: Iterable[str]) -> None: |
| 216 | """Delete all rows from the provided tables.""" |
| 217 | cursor = conn.cursor() |
| 218 | for table_name in table_names: |
| 219 | cursor.execute(f"DELETE FROM {table_name}") |
| 220 | |
| 221 | |
| 222 | def reset_sqlite_sequences(conn: sqlite3.Connection, table_names: Iterable[str]) -> None: |
no test coverage detected