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

Method cursor

pymysql/connections.py:562–572  ·  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

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

Calls

no outgoing calls