MCPcopy
hub / github.com/fastapi/sqlmodel / where

Method where

sqlmodel/sql/_expression_select_cls.py:19–23  ·  view source on GitHub ↗

Return a new `Select` construct with the given expression added to its `WHERE` clause, joined to the existing clause via `AND`, if any.

(self, *whereclause: _ColumnExpressionArgument[bool] | bool)

Source from the content-addressed store, hash-verified

17 inherit_cache = True
18
19 def where(self, *whereclause: _ColumnExpressionArgument[bool] | bool) -> Self:
20 """Return a new `Select` construct with the given expression added to
21 its `WHERE` clause, joined to the existing clause via `AND`, if any.
22 """
23 return super().where(*whereclause) # ty: ignore[invalid-argument-type]
24
25 def having(self, *having: _ColumnExpressionArgument[bool] | bool) -> Self:
26 """Return a new `Select` construct with the given expression added to

Callers 15

select_heroesFunction · 0.80
select_heroesFunction · 0.80
select_heroesFunction · 0.80
select_heroesFunction · 0.80
select_heroesFunction · 0.80
select_heroesFunction · 0.80
select_heroesFunction · 0.80
select_heroesFunction · 0.80
select_heroesFunction · 0.80
select_heroesFunction · 0.80
select_heroesFunction · 0.80
select_heroesFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_tutorialFunction · 0.64