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)
| 561 | return converters.escape_bytes(s) |
| 562 | |
| 563 | def cursor(self, cursor=None): |
| 564 | """ |
| 565 | Create a new cursor to execute queries with. |
| 566 | |
| 567 | :param cursor: The type of cursor to create. None means use Cursor. |
| 568 | :type cursor: :py:class:`Cursor`, :py:class:`SSCursor`, :py:class:`DictCursor`, |
| 569 | or :py:class:`SSDictCursor`. |
| 570 | """ |
| 571 | if cursor: |
| 572 | return cursor(self) |
| 573 | return self.cursorclass(self) |
| 574 | |
| 575 | # The following methods are INTERNAL USE ONLY (called from Cursor) |
| 576 | def query(self, sql, unbuffered=False): |
no outgoing calls