MCPcopy
hub / github.com/django/django / quote_lexeme

Function quote_lexeme

django/contrib/postgres/search.py:25–26  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

23 return bytes(obj, "utf-8")
24
25 def quote_lexeme(value):
26 return UTF8Dumper(str).quote(psql_escape(value)).decode()
27
28else:
29 from psycopg2.extensions import adapt

Callers 2

test_quote_lexemeMethod · 0.90
as_sqlMethod · 0.85

Calls 4

UTF8DumperClass · 0.85
psql_escapeFunction · 0.85
decodeMethod · 0.45
getquotedMethod · 0.45

Tested by 1

test_quote_lexemeMethod · 0.72