def METHOD_NAME(self, sql: str):
    if not sql or not sql.strip():
        raise UserCodeError("Trying to execute an empty SQL query.")
    query = self._substitute_query_params(sql)
    connection = self.get_managed_connection()
    return connection.METHOD_NAME(query)