code: def commit(self):
          
  
          try:
              self.check_connection()
          except NullDatabaseConnectionError:
              return
  
          logger.debug("commit: path='{}'".format(self.database_path))
  
          try:
              self.connection.commit()
          except sqlite3.ProgrammingError:
              pass
docs: .. seealso:: :py:meth:`sqlite3.Connection.commit`