Implements a database-specific 'match' operator. :meth:`_sql.ColumnOperators.match` attempts to resolve to a MATCH-like function or operator provided by the backend. Examples include: * PostgreSQL - renders ``x @@ plainto_tsquery(y)`` .. versionchanged:
(self, other: Any, **kwargs: Any)
| 1787 | return self.operate(icontains_op, other, **kw) |
| 1788 | |
| 1789 | def match(self, other: Any, **kwargs: Any) -> ColumnOperators: |
| 1790 | """Implements a database-specific 'match' operator. |
| 1791 | |
| 1792 | :meth:`_sql.ColumnOperators.match` attempts to resolve to |
| 1793 | a MATCH-like function or operator provided by the backend. |
| 1794 | Examples include: |
| 1795 | |
| 1796 | * PostgreSQL - renders ``x @@ plainto_tsquery(y)`` |
| 1797 | |
| 1798 | .. versionchanged:: 2.0 ``plainto_tsquery()`` is used instead |
| 1799 | of ``to_tsquery()`` for PostgreSQL now; for compatibility with |
| 1800 | other forms, see :ref:`postgresql_match`. |
| 1801 | |
| 1802 | |
| 1803 | * MySQL - renders ``MATCH (x) AGAINST (y IN BOOLEAN MODE)`` |
| 1804 | |
| 1805 | .. seealso:: |
| 1806 | |
| 1807 | :class:`_mysql.match` - MySQL specific construct with |
| 1808 | additional features. |
| 1809 | |
| 1810 | * Oracle Database - renders ``CONTAINS(x, y)`` |
| 1811 | * other backends may provide special implementations. |
| 1812 | * Backends without any special implementation will emit |
| 1813 | the operator as "MATCH". This is compatible with SQLite, for |
| 1814 | example. |
| 1815 | |
| 1816 | """ |
| 1817 | return self.operate(match_op, other, **kwargs) |
| 1818 | |
| 1819 | def regexp_match( |
| 1820 | self, pattern: Any, flags: Optional[str] = None |