def execute_sql(self, *args, **kwargs):
assert self._allow_sync, (<EOL>"<STR_LIT>"<EOL>"<STR_LIT>")<EOL>if self._allow_sync in (logging.ERROR, logging.WARNING):<EOL><INDENT>logging.log(self._allow_sync,<EOL>"<STR_LIT>" %<EOL>(str(args), str(kwargs)))<EOL><DEDENT>return super().execute_sql(*args, **kwargs)<EOL>
Sync execute SQL query, `allow_sync` must be set to True.