MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _modify

Method _modify

test/engine/test_execute.py:2214–2218  ·  view source on GitHub ↗
(
            conn, clauseelement, multiparams, params, execution_options
        )

Source from the content-addressed store, hash-verified

2212
2213 @event.listens_for(connection, "before_execute", retval=True)
2214 def _modify(
2215 conn, clauseelement, multiparams, params, execution_options
2216 ):
2217 m1.run_event()
2218 return clauseelement.replace("hi", "there"), multiparams, params
2219
2220 # the event does not take effect for the "driver SQL" option
2221 eq_(connection.exec_driver_sql("select 'hi'").scalar(), "hi")

Callers

nothing calls this directly

Calls 4

selectFunction · 0.90
literal_columnFunction · 0.90
run_eventMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected