mirror of
https://github.com/apache/superset.git
synced 2026-07-17 04:05:37 +00:00
refactor: replace Engine.execute() with Connection.execute() (#41917)
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user