Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/django/django
/ UTF8Dumper
Class
UTF8Dumper
django/contrib/postgres/search.py:21–23 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
19
from
psycopg.adapt
import
Dumper
20
21
class
UTF8Dumper(Dumper):
22
def
dump(self, obj):
23
return
bytes(obj,
"utf-8"
)
24
25
def
quote_lexeme(value):
26
return
UTF8Dumper(str).quote(psql_escape(value)).decode()
Callers
1
quote_lexeme
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected