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