def execute(self, sql, parameters=None, bulk_parameters=None):
if self.connection._closed:<EOL><INDENT>raise ProgrammingError("<STR_LIT>")<EOL><DEDENT>if self._closed:<EOL><INDENT>raise ProgrammingError("<STR_LIT>")<EOL><DEDENT>self._result = self.connection.client.sql(sql, parameters,<EOL>bulk_parameters)<EOL>if "<STR_LIT>" in self._result:<EOL><INDENT>self.rows = iter(self._result["<STR_LIT>"])<EOL><DEDENT>
Prepare and execute a database operation (query or command).