MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / is_distinct_from

Method is_distinct_from

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

757 return self.operate(ne, other)
758
759 def is_distinct_from(self, other: Any) -> ColumnOperators:
760 """Implement the ``IS DISTINCT FROM`` operator.
761
762 Renders "a IS DISTINCT FROM b" on most platforms;
763 on some such as SQLite may render "a IS NOT b".
764
765 """
766 return self.operate(is_distinct_from, other)
767
768 def is_not_distinct_from(self, other: Any) -> ColumnOperators:
769 """Implement the ``IS NOT DISTINCT FROM`` operator.

Calls 1

operateMethod · 0.95