Пример #1
0
    def save(self, context):
        if objects.transition_schema():
            self.add_forward_schema_changes()

        session = db_session.get_session(mysql_traditional_mode=True)
        with session.begin():
            session.merge(self)
Пример #2
0
    def save(self, context):
        if objects.transition_schema():
            self.add_forward_schema_changes()

        session = SolumBase.get_session()
        with session.begin():
            session.merge(self)
Пример #3
0
    def save(self, context):
        if objects.transition_schema():
            self.add_forward_schema_changes()

        session = SolumBase.get_session()
        with session.begin():
            session.merge(self)