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)
| 1597 | return self.operate(icontains_op, other, **kw) |
| 1598 | |
| 1599 | def match(self, other: Any, **kwargs: Any) -> ColumnOperators: |
| 1600 | """Implements a database-specific 'match' operator. |
| 1601 | |
| 1602 | :meth:`_sql.ColumnOperators.match` attempts to resolve to |
| 1603 | a MATCH-like function or operator provided by the backend. |
| 1604 | Examples include: |
| 1605 | |
| 1606 | * PostgreSQL - renders ``x @@ plainto_tsquery(y)`` |
| 1607 | |
| 1608 | .. versionchanged:: 2.0 ``plainto_tsquery()`` is used instead |
| 1609 | of ``to_tsquery()`` for PostgreSQL now; for compatibility with |
| 1610 | other forms, see :ref:`postgresql_match`. |
| 1611 | |
| 1612 | |
| 1613 | * MySQL - renders ``MATCH (x) AGAINST (y IN BOOLEAN MODE)`` |
| 1614 | |
| 1615 | .. seealso:: |
| 1616 | |
| 1617 | :class:`_mysql.match` - MySQL specific construct with |
| 1618 | additional features. |
| 1619 | |
| 1620 | * Oracle Database - renders ``CONTAINS(x, y)`` |
| 1621 | * other backends may provide special implementations. |
| 1622 | * Backends without any special implementation will emit |
| 1623 | the operator as "MATCH". This is compatible with SQLite, for |
| 1624 | example. |
| 1625 | |
| 1626 | """ |
| 1627 | return self.operate(match_op, other, **kwargs) |
| 1628 | |
| 1629 | def regexp_match( |
| 1630 | self, pattern: Any, flags: Optional[str] = None |