def commit(self): """Commit the load transaction and flush the session """ if self.connection: # note that when not using a connection, calling session.commit() # as the inheirted code does will automatically flush the session self.session.flush() log.debug("transaction.commit() <- %s", self.transaction) DBLoadableFixture.commit(self)
def commit(self): """Commit the load transaction and flush the session """ if self.connection: # note that when not using a connection, calling session.commit() # as the inheirted code does will automatically flush the session self.session.flush() # this is a hack because I can't get transaction.commit # to actually do anything for me... self.session.commit() log.debug("transaction.commit() <- %s", self.transaction) DBLoadableFixture.commit(self)
def commit(self): """Commit transaction""" if self.use_transaction: DBLoadableFixture.commit(self)
def commit(self): if self.use_transaction: DBLoadableFixture.commit(self)
def commit(self): self.session.flush() DBLoadableFixture.commit(self)