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

Method is_distinct_from

lib/sqlalchemy/sql/operators.py:595–602  ·  view source on GitHub ↗

Implement the ``IS DISTINCT FROM`` operator. Renders "a IS DISTINCT FROM b" on most platforms; on some such as SQLite may render "a IS NOT b".

(self, other: Any)

Source from the content-addressed store, hash-verified

593 return self.operate(ne, other)
594
595 def is_distinct_from(self, other: Any) -> ColumnOperators:
596 """Implement the ``IS DISTINCT FROM`` operator.
597
598 Renders "a IS DISTINCT FROM b" on most platforms;
599 on some such as SQLite may render "a IS NOT b".
600
601 """
602 return self.operate(is_distinct_from, other)
603
604 def is_not_distinct_from(self, other: Any) -> ColumnOperators:
605 """Implement the ``IS NOT DISTINCT FROM`` operator.

Calls 1

operateMethod · 0.95