code: def cursor(self):
          
  
          if self.single_cursor_mode:
              if self._cursor is None:
                  raise sqlite3.ProgrammingError("Cannot operate on a closed database.")
  
              return self._cursor
  
          return Cursor(self)
docs: Analogous to :any:`sqlite3.Connection.cursor`