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

Method literal

MySQLdb/connections.py:245–256  ·  view source on GitHub ↗

If o is a single object, returns an SQL literal as a string. If o is a non-string sequence, the items of the sequence are converted and returned as a sequence. Non-standard. For internal use; do not use this in your applications.

(self, o)

Source from the content-addressed store, hash-verified

243 self.commit()
244
245 def literal(self, o):
246 """
247
248 If o is a single object, returns an SQL literal as a string.
249 If o is a non-string sequence, the items of the sequence are
250 converted and returned as a sequence.
251
252 Non-standard. For internal use; do not use this in your
253 applications.
254
255 """
256 return self.escape(o, self.encoders)
257
258 def begin(self):
259 """Explicitly begin a connection. Non-standard.

Callers 4

bytes_literalMethod · 0.80
executeMethod · 0.80
executemanyMethod · 0.80
callprocMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected