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

Method query

src/MySQLdb/connections.py:282–286  ·  view source on GitHub ↗
(self, query)

Source from the content-addressed store, hash-verified

280 return (cursorclass or self.cursorclass)(self)
281
282 def query(self, query):
283 # Since _mysql releases GIL while querying, we need immutable buffer.
284 if isinstance(query, bytearray):
285 query = bytes(query)
286 _mysql.connection.query(self, query)
287
288 def _bytes_literal(self, bs):
289 assert isinstance(bs, (bytes, bytearray))

Callers 5

beginMethod · 0.95
set_character_setMethod · 0.95
set_sql_modeMethod · 0.95
show_warningsMethod · 0.95
_queryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected