[sqlalchemy] Session's dialect's server_version_info may be None? (Execution order dependency)

2018-02-20 Thread jens . troeger
Hello, Suppose I create a db session the normal way: >>> engine = engine_from_config({"sqlalchemy.url":"mysql+pymysql://…"}) >>> Session = sessionmaker(bind=engine) >>> session = Session() I noticed that there is now an order dependency between: >>> session.bind.dialect.server_version_info #

Read the Alembic history

2018-02-20 Thread jens . troeger
Hello, Is there a supported way to get programmatic access to the history of an Alembic migration chain? I mean, the command > alembic -c foo.ini history 3bf9af8da72c -> cb13f97d30c6 (head), Table funk 33b960335847 -> 3bf9af8da72c, Column funk … 36afb00c3a4 -> 7dd0eef31115, Funky funk ->