MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _exec_insertmany_context

Function _exec_insertmany_context

lib/sqlalchemy/testing/fixtures/sql.py:507–513  ·  view source on GitHub ↗
(dialect, context)

Source from the content-addressed store, hash-verified

505 yield batch
506
507 def _exec_insertmany_context(dialect, context):
508 with mock.patch.object(
509 dialect,
510 "_deliver_insertmanyvalues_batches",
511 new=_deliver_insertmanyvalues_batches,
512 ):
513 return orig_conn(dialect, context)
514
515 connection._exec_insertmany_context = _exec_insertmany_context
516

Callers

nothing calls this directly

Calls 1

objectMethod · 0.80

Tested by

no test coverage detected