Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sqlalchemy/sqlalchemy
/ _quote_ddl_expr
Function
_quote_ddl_expr
lib/sqlalchemy/sql/util.py:543–548 ·
view source on GitHub ↗
(element)
Source
from the content-addressed store, hash-verified
541
542
543
def
_quote_ddl_expr(element):
544
if
isinstance(element, str):
545
element = element.replace(
"'"
,
"''"
)
546
return
"'%s'"
% element
547
else
:
548
return
repr(element)
549
550
551
class
_repr_base:
Callers
nothing calls this directly
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected