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 ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé
Module « sqlalchemy »

Fonction NotNullable - module sqlalchemy

Signature de la fonction NotNullable

def NotNullable(val: 'Union[_TypedColumnClauseArgument[Optional[_T]], Optional[Type[_T]]]') -> '_TypedColumnClauseArgument[_T]' 

Description

help(sqlalchemy.NotNullable)

Types a column or ORM class as not nullable.

This can be used in select and other contexts to express that the value of
a column cannot be null, for example due to a where condition on a
nullable column::

    stmt = select(NotNullable(A.value)).where(A.value.is_not(None))

At runtime this method returns the input unchanged.

.. versionadded:: 2.0.20


Vous êtes un professionnel et vous avez besoin d'une formation ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé