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

Method not_like

lib/sqlalchemy/sql/operators.py:981–998  ·  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

979 notin_ = not_in
980
981 def not_like(
982 self, other: Any, escape: Optional[str] = None
983 ) -> ColumnOperators:
984 """implement the ``NOT LIKE`` operator.
985
986 This is equivalent to using negation with
987 :meth:`.ColumnOperators.like`, i.e. ``~x.like(y)``.
988
989 .. versionchanged:: 1.4 The ``not_like()`` operator is renamed from
990 ``notlike()`` in previous releases. The previous name remains
991 available for backwards compatibility.
992
993 .. seealso::
994
995 :meth:`.ColumnOperators.like`
996
997 """
998 return self.operate(not_like_op, other, escape=escape)
999
1000 # deprecated 1.4; see #5435
1001 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