def add_condition(self, field_name, op, value):
if not isinstance(op, SQL_OP):<EOL><INDENT>if op not in SQL_OP.txt2op:<EOL><INDENT>raise SQLOperatorInvalid(op)<EOL><DEDENT>else:<EOL><INDENT>op = SQL_OP.txt2op.get(op)<EOL><DEDENT><DEDENT>self.conditions.append([field_name, op, value])<EOL>
Add a query condition and validate it.
raise ParamsException if failed.
self.view required
:param field_name:
:param op:
:param value:
:return: None