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

def sqlalchemy::pool::_ConnectionFairy::invalidate (   self,
  e = None 
)

Mark this connection as invalidated.

The connection will be immediately closed.  The containing
ConnectionRecord will create a new connection when next used.

Definition at line 352 of file pool.py.

00352                                 :
        """Mark this connection as invalidated.

        The connection will be immediately closed.  The containing
        ConnectionRecord will create a new connection when next used.
        """

        if self.connection is None:
            raise exc.InvalidRequestError("This connection is closed")
        if self._connection_record is not None:
            self._connection_record.invalidate(e=e)
        self.connection = None
        self._close()

    def cursor(self, *args, **kwargs):


Generated by  Doxygen 1.6.0   Back to index