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é
Module « sqlalchemy.orm »

Classe « ORMExecuteState »

Informations générales

Héritage

builtins.object
    MemoizedSlots
        ORMExecuteState

Définition

class ORMExecuteState(MemoizedSlots):

help(ORMExecuteState)

Represents a call to the :meth:`_orm.Session.execute` method, as passed
to the :meth:`.SessionEvents.do_orm_execute` event hook.

.. versionadded:: 1.4

.. seealso::

    :ref:`session_execute_events` - top level documentation on how
    to use :meth:`_orm.SessionEvents.do_orm_execute`

Constructeur(s)

Signature du constructeur Description
__init__(self, session: 'Session', statement: 'Executable', parameters: 'Optional[_CoreAnyExecuteParams]', execution_options: '_ExecuteOptions', bind_arguments: '_BindArguments', compile_state_cls: 'Optional[Type[ORMCompileState]]', events_todo: 'List[_InstanceLevelDispatch[Session]]') Construct a new :class:`_orm.ORMExecuteState`. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
bind_arguments<member 'bind_arguments' of 'ORMExecuteState' objects>
execution_options<member 'execution_options' of 'ORMExecuteState' objects>
identity_token<member 'identity_token' of 'ORMExecuteState' objects>
local_execution_options<member 'local_execution_options' of 'ORMExecuteState' objects>
parameters<member 'parameters' of 'ORMExecuteState' objects>
session<member 'session' of 'ORMExecuteState' objects>
statement<member 'statement' of 'ORMExecuteState' objects>

Liste des propriétés

Nom de la propriétéDescription
all_mappersReturn a sequence of all :class:`_orm.Mapper` objects that are [extrait de all_mappers.__doc__]
bind_mapperReturn the :class:`_orm.Mapper` that is the primary "bind" mapper. [extrait de bind_mapper.__doc__]
is_column_loadReturn True if the operation is refreshing column-oriented [extrait de is_column_load.__doc__]
is_deletereturn True if this is a DELETE operation. [extrait de is_delete.__doc__]
is_executemanyreturn True if the parameters are a multi-element list of [extrait de is_executemany.__doc__]
is_from_statementreturn True if this operation is a [extrait de is_from_statement.__doc__]
is_insertreturn True if this is an INSERT operation. [extrait de is_insert.__doc__]
is_orm_statementreturn True if the operation is an ORM statement. [extrait de is_orm_statement.__doc__]
is_relationship_loadReturn True if this load is loading objects on behalf of a [extrait de is_relationship_load.__doc__]
is_selectreturn True if this is a SELECT operation. [extrait de is_select.__doc__]
is_updatereturn True if this is an UPDATE operation. [extrait de is_update.__doc__]
lazy_loaded_fromAn :class:`.InstanceState` that is using this statement execution [extrait de lazy_loaded_from.__doc__]
load_optionsReturn the load_options that will be used for this execution. [extrait de load_options.__doc__]
loader_strategy_pathReturn the :class:`.PathRegistry` for the current load path. [extrait de loader_strategy_path.__doc__]
update_delete_optionsReturn the update_delete_options that will be used for this [extrait de update_delete_options.__doc__]
user_defined_optionsThe sequence of :class:`.UserDefinedOptions` that have been [extrait de user_defined_options.__doc__]

Liste des opérateurs

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
invoke_statement(self, statement: 'Optional[Executable]' = None, params: 'Optional[_CoreAnyExecuteParams]' = None, execution_options: 'Optional[OrmExecuteOptionsParameter]' = None, bind_arguments: 'Optional[_BindArguments]' = None) -> 'Result[Any]' Execute the statement represented by this [extrait de invoke_statement.__doc__]
update_execution_options(self, **opts: 'Any') -> 'None' Update the local execution options with new values. [extrait de update_execution_options.__doc__]

Méthodes héritées de la classe MemoizedSlots

__getattr__, __init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __getstate__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__

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é