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

Method params

lib/sqlalchemy/ext/baked.py:326–337  ·  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

324 self._post_criteria = []
325
326 def params(self, *args, **kw):
327 """Specify parameters to be replaced into the string SQL statement."""
328
329 if len(args) == 1:
330 kw.update(args[0])
331 elif len(args) > 0:
332 raise sa_exc.ArgumentError(
333 "params() takes zero or one positional argument, "
334 "which is a dictionary."
335 )
336 self._params.update(kw)
337 return self
338
339 def _using_post_criteria(self, fns):
340 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