I am using SQLite as an application file format (see here for why you would want to do this) for my PySide-based desktop application. That is, when a user uses my app, their
Not really an answer, but i had a hardtime with that, so I wanted to share:
How to pass an x_argument programatically with alembic.command.upgrade:
class CmdOpts:
x = {"data=true"}
here data=true is what i pass as x_argument in command line
alembic_config = AlembicConfig(ini_location)
setattr(alembic_config, "cmd_opts", CmdOpts())
alembic_config.cmd_opts.x = {"data": True}