MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / params

Method params

lib/sqlalchemy/ext/baked.py:319–330  ·  view source on GitHub ↗

Specify parameters to be replaced into the string SQL statement.

(self, *args, **kw)

Source from the content-addressed store, hash-verified

317 self._post_criteria = []
318
319 def params(self, *args, **kw):
320 """Specify parameters to be replaced into the string SQL statement."""
321
322 if len(args) == 1:
323 kw.update(args[0])
324 elif len(args) > 0:
325 raise sa_exc.ArgumentError(
326 "params() takes zero or one positional argument, "
327 "which is a dictionary."
328 )
329 self._params.update(kw)
330 return self
331
332 def _using_post_criteria(self, fns):
333 if fns:

Callers 5

_as_queryMethod · 0.45
_iterMethod · 0.45
countMethod · 0.45
firstMethod · 0.45
_load_on_pk_identityMethod · 0.45

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected