Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les fondamentaux
Voir le programme détaillé
Classe « ColumnOperators »

Méthode sqlalchemy.ColumnOperators.match

Signature de la méthode match

def match(self, other: 'Any', **kwargs: 'Any') -> 'ColumnOperators' 

Description

help(ColumnOperators.match)

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:: 2.0  ``plainto_tsquery()`` is used instead
       of ``to_tsquery()`` for PostgreSQL now; for compatibility with
       other forms, see :ref:`postgresql_match`.


* MySQL - renders ``MATCH (x) AGAINST (y IN BOOLEAN MODE)``

  .. seealso::

        :class:`_mysql.match` - MySQL specific construct with
        additional features.

* Oracle Database - renders ``CONTAINS(x, y)``
* other backends may provide special implementations.
* Backends without any special implementation will emit
  the operator as "MATCH".  This is compatible with SQLite, for
  example.



Vous êtes un professionnel et vous avez besoin d'une formation ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé