MCPcopy Index your code
hub / github.com/davispuh/MySQL-for-Python-3 / cursor

Method cursor

MySQLdb/connections.py:223–232  ·  view source on GitHub ↗

Create a cursor on which queries may be performed. The optional cursorclass parameter is used to create the Cursor. By default, self.cursorclass=cursors.Cursor is used.

(self, cursorclass=None)

Source from the content-addressed store, hash-verified

221 _mysql.connection.autocommit(self, on)
222
223 def cursor(self, cursorclass=None):
224 """
225
226 Create a cursor on which queries may be performed. The
227 optional cursorclass parameter is used to create the
228 Cursor. By default, self.cursorclass=cursors.Cursor is
229 used.
230
231 """
232 return (cursorclass or self.cursorclass)(self)
233
234 def __enter__(self):
235 if self.get_autocommit():

Callers 15

__enter__Method · 0.95
tearDownMethod · 0.80
test_cursorMethod · 0.80
test_cursor_isolationMethod · 0.80
test_descriptionMethod · 0.80
test_rowcountMethod · 0.80
test_callprocMethod · 0.80
test_closeMethod · 0.80
test_executeMethod · 0.80
test_executemanyMethod · 0.80
test_fetchoneMethod · 0.80
test_fetchmanyMethod · 0.80

Calls

no outgoing calls

Tested by 15

test_cursorMethod · 0.64
test_cursor_isolationMethod · 0.64
test_descriptionMethod · 0.64
test_rowcountMethod · 0.64
test_callprocMethod · 0.64
test_closeMethod · 0.64
test_executeMethod · 0.64
test_executemanyMethod · 0.64
test_fetchoneMethod · 0.64
test_fetchmanyMethod · 0.64
test_fetchallMethod · 0.64
test_mixedfetchMethod · 0.64