Create a new cursor to execute queries with. :param cursor: The type of cursor to create. None means use Cursor. :type cursor: :py:class:`Cursor`, :py:class:`SSCursor`, :py:class:`DictCursor`, or :py:class:`SSDictCursor`.
(self, cursor=None)
| 570 | return converters.escape_string(s) |
| 571 | |
| 572 | def cursor(self, cursor=None): |
| 573 | """ |
| 574 | Create a new cursor to execute queries with. |
| 575 | |
| 576 | :param cursor: The type of cursor to create. None means use Cursor. |
| 577 | :type cursor: :py:class:`Cursor`, :py:class:`SSCursor`, :py:class:`DictCursor`, |
| 578 | or :py:class:`SSDictCursor`. |
| 579 | """ |
| 580 | if cursor: |
| 581 | return cursor(self) |
| 582 | return self.cursorclass(self) |
| 583 | |
| 584 | # The following methods are INTERNAL USE ONLY (called from Cursor) |
| 585 | def query(self, sql, unbuffered=False): |
no outgoing calls