Skip to content

Commit

Permalink
Engine dispose
Browse files Browse the repository at this point in the history
  • Loading branch information
galvana committed Jan 31, 2025
1 parent 88973db commit ffa20b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fides/api/db/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def reset_db(database_url: str) -> None:
"""
log.info("Resetting database...")
engine = get_db_engine(database_url)
engine.dispose()
with engine.connect() as connection:
log.info("Dropping tables...")
Base.metadata.drop_all(bind=connection)
Expand Down

0 comments on commit ffa20b7

Please sign in to comment.