def cursor(self):
        """Analogous to :any:`sqlite3.Connection.cursor`"""

        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)
Analogous to :any:`sqlite3.Connection.cursor`