~psycopg/psycopg/2.0.x

« back to all changes in this revision

Viewing changes to doc/async.txt

  • Committer: Federico Di Gregorio
  • Date: 2009-04-20 22:38:09 UTC
  • Revision ID: fog@erin-20090420223809-y59bb142mo3vadnw
Better detection of PostgreSQL version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
psycopg asynchronous API
2
2
************************
3
3
 
 
4
** Important: async quaeries are not enabled for 2.0 **
 
5
 
4
6
Program code can initiate an asynchronous query by passing an 'async=1' flag
5
7
to the .execute() method. A very simple example, from the connection to the
6
8
query: