MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / cursor

Method cursor

pymysql/connections.py:572–582  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Calls

no outgoing calls