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 ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé
Classe « Dialect »

Méthode sqlalchemy.Dialect.create_connect_args

Signature de la méthode create_connect_args

def create_connect_args(self, url: 'URL') -> 'ConnectArgsType' 

Description

help(Dialect.create_connect_args)

Build DB-API compatible connection arguments.

Given a :class:`.URL` object, returns a tuple
consisting of a ``(*args, **kwargs)`` suitable to send directly
to the dbapi's connect function.   The arguments are sent to the
:meth:`.Dialect.connect` method which then runs the DBAPI-level
``connect()`` function.

The method typically makes use of the
:meth:`.URL.translate_connect_args`
method in order to generate a dictionary of options.

The default implementation is::

    def create_connect_args(self, url):
        opts = url.translate_connect_args()
        opts.update(url.query)
        return ([], opts)

:param url: a :class:`.URL` object

:return: a tuple of ``(*args, **kwargs)`` which will be passed to the
 :meth:`.Dialect.connect` method.

.. seealso::

    :meth:`.URL.translate_connect_args`



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é