code: def execute(self, sql, parameters=None, bulk_parameters=None):
          
          if self.connection._closed:
              raise ProgrammingError("Connection closed")
  
          if self._closed:
              raise ProgrammingError("Cursor closed")
  
          self._result = self.connection.client.sql(sql, parameters,
                                                    bulk_parameters)
          if "rows" in self._result:
              self.rows = iter(self._result["rows"])
docs: Prepare and execute a database operation (query or command).