Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/sqlalchemy/sqlalchemy
/ _quote_ddl_expr
Function
_quote_ddl_expr
lib/sqlalchemy/sql/util.py:553–558 ·
view source on GitHub ↗
(element)
Source
from the content-addressed store, hash-verified
551
552
553
def
_quote_ddl_expr(element):
554
if
isinstance(element, str):
555
element = element.replace(
"'"
,
"''"
)
556
return
"'%s'"
% element
557
else
:
558
return
repr(element)
559
560
561
class
_repr_base:
Callers
nothing calls this directly
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected