Skip to content

Glossary: PostgreSQL for Developers

with block

Also written: with

A Python statement that sets something up and cleans it up at the end. With a psycopg connection it commits on normal exit, rolls back if an exception escapes, and closes either way.

Where the book teaches it

Related terms

connectiontransaction