MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / with_dialect_options

Method with_dialect_options

lib/sqlalchemy/sql/dml.py:466–479  ·  view source on GitHub ↗

Add dialect options to this INSERT/UPDATE/DELETE object. e.g.:: upd = table.update().dialect_options(mysql_limit=10) .. versionadded: 1.4 - this method supersedes the dialect options associated with the constructor.

(self, **opt: Any)

Source from the content-addressed store, hash-verified

464
465 @_generative
466 def with_dialect_options(self, **opt: Any) -> Self:
467 """Add dialect options to this INSERT/UPDATE/DELETE object.
468
469 e.g.::
470
471 upd = table.update().dialect_options(mysql_limit=10)
472
473 .. versionadded: 1.4 - this method supersedes the dialect options
474 associated with the constructor.
475
476
477 """
478 self._validate_dialect_kwargs(opt)
479 return self
480
481 @_generative
482 def return_defaults(

Callers 6

deleteMethod · 0.80
updateMethod · 0.80
CoreFixturesClass · 0.80
test_update_limitMethod · 0.80
test_delete_limitMethod · 0.80

Calls 1

Tested by 3

test_update_limitMethod · 0.64
test_delete_limitMethod · 0.64