MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / not_like

Method not_like

lib/sqlalchemy/sql/operators.py:1171–1188  ·  view source on GitHub ↗

implement the ``NOT LIKE`` operator. This is equivalent to using negation with :meth:`.ColumnOperators.like`, i.e. ``~x.like(y)``. .. versionchanged:: 1.4 The ``not_like()`` operator is renamed from ``notlike()`` in previous releases. The previous name remains

(
        self, other: Any, escape: Optional[str] = None
    )

Source from the content-addressed store, hash-verified

1169 notin_ = not_in
1170
1171 def not_like(
1172 self, other: Any, escape: Optional[str] = None
1173 ) -> ColumnOperators:
1174 """implement the ``NOT LIKE`` operator.
1175
1176 This is equivalent to using negation with
1177 :meth:`.ColumnOperators.like`, i.e. ``~x.like(y)``.
1178
1179 .. versionchanged:: 1.4 The ``not_like()`` operator is renamed from
1180 ``notlike()`` in previous releases. The previous name remains
1181 available for backwards compatibility.
1182
1183 .. seealso::
1184
1185 :meth:`.ColumnOperators.like`
1186
1187 """
1188 return self.operate(not_like_op, other, escape=escape)
1189
1190 # deprecated 1.4; see #5435
1191 if TYPE_CHECKING:

Callers 7

get_schema_namesMethod · 0.45
_comment_queryMethod · 0.45
test_not_likeMethod · 0.45
test_not_like_escapeMethod · 0.45
test_issue_9418Function · 0.45
operators.pyFile · 0.45

Calls 1

operateMethod · 0.95

Tested by 4

test_not_likeMethod · 0.36
test_not_like_escapeMethod · 0.36
test_issue_9418Function · 0.36