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

Method select

lib/sqlalchemy/sql/selectable.py:6952–6972  ·  view source on GitHub ↗

r"""Return a SELECT of this :class:`_expression.Exists`. e.g.:: stmt = exists(some_table.c.id).where(some_table.c.id == 5).select() This will produce a statement resembling: .. sourcecode:: sql SELECT EXISTS (SELECT id FROM some_table WHERE some_t

(self)

Source from the content-addressed store, hash-verified

6950 return return_value
6951
6952 def select(self) -> Select[Tuple[bool]]:
6953 r"""Return a SELECT of this :class:`_expression.Exists`.
6954
6955 e.g.::
6956
6957 stmt = exists(some_table.c.id).where(some_table.c.id == 5).select()
6958
6959 This will produce a statement resembling:
6960
6961 .. sourcecode:: sql
6962
6963 SELECT EXISTS (SELECT id FROM some_table WHERE some_table = :param) AS anon_1
6964
6965 .. seealso::
6966
6967 :func:`_expression.select` - general purpose
6968 method which allows for arbitrary column lists.
6969
6970 """ # noqa
6971
6972 return Select(self)
6973
6974 def correlate(
6975 self,

Callers

nothing calls this directly

Calls 1

SelectClass · 0.85

Tested by

no test coverage detected