~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to doc/build/core/pooling.rst

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
    cursor.execute("select foo")
128
128
 
129
129
The purpose of the transparent proxy is to intercept the ``close()`` call,
130
 
such that instead of the DBAPI connection being closed, it's returned to the
 
130
such that instead of the DBAPI connection being closed, it is returned to the
131
131
pool::
132
132
 
133
133
    # "close" the connection.  Returns
229
229
 
230
230
At the expense of some extra SQL emitted for each connection checked out from the pool,
231
231
a "ping" operation established by a checkout event handler
232
 
can detect an invalid connection before it's used::
 
232
can detect an invalid connection before it is used::
233
233
 
234
234
    from sqlalchemy import exc
235
235
    from sqlalchemy import event