Specify parameters to be replaced into the string SQL statement.
(self, *args, **kw)
| 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: |