refactor: replace Engine.execute() with Connection.execute() (#41917)

This commit is contained in:
Hans Yu
2026-07-13 18:40:33 +02:00
committed by GitHub
parent 8f75f1a353
commit 68ebc22e1e
32 changed files with 342 additions and 266 deletions

View File

@@ -75,7 +75,8 @@ class PandasDataLoader(DataLoader):
return None
def remove_table(self, table_name: str) -> None:
self._db_engine.execute(text(f"DROP TABLE IF EXISTS {table_name}"))
with self._db_engine.begin() as conn:
conn.execute(text(f"DROP TABLE IF EXISTS {table_name}"))
class TableToDfConvertor(ABC):