(self)
return self.transaction.commit()
Commit the current :attr:`transaction`.

        If no transaction is in progress, this method open one.
        Rarely used directly, see the :meth:`begin` method for details on
        how to start and close a transaction using the `with` construct.
Commit the current :attr:`transaction`.
Commit the current : attr : transaction .
def commit(self):
        """Commit the current :attr:`transaction`.

        If no transaction is in progress, this method open one.
        Rarely used directly, see the :meth:`begin` method for details on
        how to start and close a transaction using the `with` construct.
        """
        if self.transaction is None:
            self.begin()
        return self.transaction.commit()
def commit ( self ) : if self . transaction is None : self . begin ( ) return self . transaction . commit ( )