I want to find and replace any instances of a substring within a database (in multiple tables / columns).
I figure I need to somehow loop through the database tables then columns then replace any instance of a substring but not sure how to do that using SQLAlchemy.
This is basically what I want to do but this is looping through a dataframe instead:
for col in df.columns:
df[col] = df[col].replace('old_str', 'new_str', regex=True)
The substrings I am replacing exist in several different tables within the database.