MCPcopy Create free account
hub / github.com/PyMySQL/mysqlclient / _get_db

Method _get_db

src/MySQLdb/cursors.py:156–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

154 """Does nothing, required by DB API."""
155
156 def _get_db(self):
157 con = self.connection
158 if con is None:
159 raise ProgrammingError("cursor closed")
160 return con
161
162 def execute(self, query, args=None):
163 """Execute a query.

Callers 8

nextsetMethod · 0.95
_mogrifyMethod · 0.95
mogrifyMethod · 0.95
executemanyMethod · 0.95
callprocMethod · 0.95
_queryMethod · 0.95
_get_resultMethod · 0.80
_get_resultMethod · 0.80

Calls 1

ProgrammingErrorClass · 0.85

Tested by

no test coverage detected