Logo Search packages:      
Sourcecode: sqlalchemy version File versions  Download package

def sqlalchemy::sql::expression::ClauseElement::execute (   self,
) [inherited]

Compile and execute this :class:`ClauseElement`.

Definition at line 1191 of file expression.py.

01191                                              :
        """Compile and execute this :class:`ClauseElement`."""

        e = self.bind
        if e is None:
            label = getattr(self, 'description', self.__class__.__name__)
            msg = ('This %s is not bound and does not support direct '
                   'execution. Supply this statement to a Connection or '
                   'Engine for execution. Or, assign a bind to the statement '
                   'or the Metadata of its underlying tables to enable '
                   'implicit execution via this method.' % label)
            raise exc.UnboundExecutionError(msg)
        return e._execute_clauseelement(self, multiparams, params)

    def scalar(self, *multiparams, **params):

Generated by  Doxygen 1.6.0   Back to index