Esempio n. 1
0
def enable_sql_two_phase_commit(config, enable=True):
    Session.configure(twophase=enable)
Esempio n. 2
0
def enable_sql_two_phase_commit(config, enable=True):
    Session.configure(twophase=enable)
Esempio n. 3
0
def init_sqlalchemy(engine):
    """Initialise the SQLAlchemy models. This must be called before using
    using any of the SQLAlchemy managed the tables or classes in the model."""
    Session.configure(bind=engine)
    metadata.bind = engine
Esempio n. 4
0
def init_sqlalchemy(engine):
    """Initialise the SQLAlchemy models. This must be called before using
    using any of the SQLAlchemy managed the tables or classes in the model."""
    Session.configure(bind=engine)
    metadata.bind = engine