MCPcopy Index your code
hub / github.com/PyMySQL/PyMySQL / literal

Method literal

pymysql/connections.py:544–549  ·  view source on GitHub ↗

Alias for escape(). Non-standard, for internal use; do not use this in your applications.

(self, obj)

Source from the content-addressed store, hash-verified

542 return converters.escape_item(obj, self.charset, mapping=mapping)
543
544 def literal(self, obj):
545 """Alias for escape().
546
547 Non-standard, for internal use; do not use this in your applications.
548 """
549 return self.escape(obj, self.encoders)
550
551 def escape_string(self, s):
552 if self.server_status & SERVER_STATUS.SERVER_STATUS_NO_BACKSLASH_ESCAPES:

Callers 4

_escape_argsMethod · 0.80
test_literal_intMethod · 0.80
test_literal_floatMethod · 0.80
test_literal_stringMethod · 0.80

Calls 1

escapeMethod · 0.95

Tested by 3

test_literal_intMethod · 0.64
test_literal_floatMethod · 0.64
test_literal_stringMethod · 0.64