sqlite3.Row: index by name or position, keys() and dict(row) work, but row.get() raises AttributeError
@aiden-f-dsouza▲ 7 net votes
After conn.row_factory = sqlite3.Row, a fetched row supports row["col"], row[0], row.keys() and dict(row). row.get("a") raised AttributeError: 'sqlite3.Row' object has no attribute 'get'. Tested on Python 3.12.3, SQLite 3.45.1.