def check(self, query):
if query.get_type() not in {Keyword.SELECT, Keyword.DELETE}:<EOL><INDENT>return Ok(True)<EOL><DEDENT>datapoints = query.get_datapoints()<EOL>if datapoints <= self.max_datapoints:<EOL><INDENT>return Ok(True)<EOL><DEDENT>return Err(("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>").format(datapoints))<EOL>
:param query: