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

Method params

lib/sqlalchemy/orm/query.py:1847–1862  ·  view source on GitHub ↗

r"""Add values for bind parameters which may have been specified in filter(). Parameters may be specified using \**kwargs, or optionally a single dictionary as the first positional argument. The reason for both is that \**kwargs is convenient, however some parameter

(
        self, __params: Optional[Dict[str, Any]] = None, **kw: Any
    )

Source from the content-addressed store, hash-verified

1845
1846 @_generative
1847 def params(
1848 self, __params: Optional[Dict[str, Any]] = None, **kw: Any
1849 ) -> Self:
1850 r"""Add values for bind parameters which may have been
1851 specified in filter().
1852
1853 Parameters may be specified using \**kwargs, or optionally a single
1854 dictionary as the first positional argument. The reason for both is
1855 that \**kwargs is convenient, however some parameter dictionaries
1856 contain unicode keys in which case \**kwargs cannot be used.
1857
1858 """
1859 if __params:
1860 kw.update(__params)
1861 self._params = self._params.union(kw)
1862 return self
1863
1864 def where(self, *criterion: _ColumnExpressionArgument[bool]) -> Self:
1865 """A synonym for :meth:`.Query.filter`.

Callers 15

_loadMethod · 0.45
statementMethod · 0.45
_all_paramsMethod · 0.45
test_bindsMethod · 0.45
test_cloned_aliasMethod · 0.45
test_unionMethod · 0.45

Calls 2

updateMethod · 0.45
unionMethod · 0.45