MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / visit_not_like_op_binary

Method visit_not_like_op_binary

lib/sqlalchemy/sql/compiler.py:3625–3634  ·  view source on GitHub ↗
(self, binary, operator, **kw)

Source from the content-addressed store, hash-verified

3623 )
3624
3625 def visit_not_like_op_binary(self, binary, operator, **kw):
3626 escape = binary.modifiers.get("escape", None)
3627 return "%s NOT LIKE %s" % (
3628 binary.left._compiler_dispatch(self, **kw),
3629 binary.right._compiler_dispatch(self, **kw),
3630 ) + (
3631 " ESCAPE " + self.render_literal_value(escape, sqltypes.STRINGTYPE)
3632 if escape is not None
3633 else ""
3634 )
3635
3636 def visit_ilike_op_binary(self, binary, operator, **kw):
3637 if operator is operators.ilike_op:

Calls 3

render_literal_valueMethod · 0.95
getMethod · 0.45
_compiler_dispatchMethod · 0.45

Tested by

no test coverage detected