Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MagicStack/asyncpg
/ _quote_literal
Function
_quote_literal
asyncpg/utils.py:15–16 ·
view source on GitHub ↗
(string)
Source
from the content-addressed store, hash-verified
13
14
15
def
_quote_literal(string):
16
return
"'{}'"
.format(string.replace(
"'"
,
"''"
))
17
18
19
async
def
_mogrify(conn, query, args):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected