Framework for Python

Errors and Types

Connection

A DB-API connection from db_connect().

It behaves like the driver's own connection (cursor(), commit(), and so on) and closes when a with block ends::

with fw.db_connect("warehouse") as conn:
    cursor = conn.cursor()