Summary

In this chapter, we've shown you the Python DB-API (version 2.0). There are at least three implementations of the PostgreSQL/DB-API interface; we've described the PyGreSQL implementation because that is the one you are most likely to have if you're using an older version of PostgreSQL (it was distributed with PostgreSQL for quite some time). As we mentioned at the beginning of this chapter, all three PostgreSQL/Python APIs are compatible with the Python DB-API so you can choose a different implementation if you find that it offers features that you need.

As we mentioned at the start of this chapter, you can also use the PyGreSQL interface without using the DB-API wrapper. PyGreSQL is a nifty toolkit, but the DB class offers some nice ...

Get PostgreSQL, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.