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 ? Coder avec une
Intelligence Artificielle
Voir le programme détaillé
Classe « BOOLEAN »

Constructeur sqlalchemy.BOOLEAN.__init__

Signature de la constructeur __init__

def __init__(self, create_constraint: 'bool' = False, name: 'Optional[str]' = None, _create_events: 'bool' = True, _adapted_from: 'Optional[SchemaType]' = None) 

Description

help(BOOLEAN.__init__)

Construct a Boolean.

:param create_constraint: defaults to False.  If the boolean
  is generated as an int/smallint, also create a CHECK constraint
  on the table that ensures 1 or 0 as a value.

  .. note:: it is strongly recommended that the CHECK constraint
     have an explicit name in order to support schema-management
     concerns.  This can be established either by setting the
     :paramref:`.Boolean.name` parameter or by setting up an
     appropriate naming convention; see
     :ref:`constraint_naming_conventions` for background.

  .. versionchanged:: 1.4 - this flag now defaults to False, meaning
     no CHECK constraint is generated for a non-native enumerated
     type.

:param name: if a CHECK constraint is generated, specify
  the name of the constraint.



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