Add cursor_factory property and make Connection.cursor() use it Ideally also add Connection.execute and Connection.executemany