``` >>> with db.get_cursor() as cursor: ... cursor.execute("select * from foo") ... >>> cursor <cursor object at 0x10027d350; closed: 0> ```