PyDocs

Nav

Data Persistence

Cursor.row_factory

sqlite3

attribute of Cursor
Control how a row fetched from this Cursor is represented. If None, a row is represented as a tuple. Can be set to the included sqlite3.Row; or a callable that accepts two arguments, a Cursor object and the tuple of row values, and returns a custom object representing an SQLite row.
Changed in 3.15
  • 3.15: Deleting the row_factory attribute is no longer allowed.
0 Examples
No examples for sqlite3/Cursor.row_factory.
See Also
No see-alsos for sqlite3/Cursor.row_factory
0 Notes
No notes for Cursor.row_factory