Skip to content
Advertisement

Tag: python

Fetching Results after ibm_db.execute()

Take a look at the following code: import ibm_db #Authentication Details f=open(r”C:UsersXXXXXMy Code.rc”,”r”) lines=f.readlines() us=lines[0].rstrip() pd=lines[1] sql_file = “NNM_SQL.sql” f = …

Do a dry-run of an Alembic upgrade

Sometimes alembic upgrade head may fail at runtime against my production database even though it worked fine against my testing databases. For instance, a migration might add a NOT NULL constraint to a column that didn’t previously contain NULLs in my testing environment, but did contain NULLs in production. When planning deployments, it’d be nice to able to check in

Advertisement