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

Method __init__

lib/sqlalchemy/sql/selectable.py:5379–5394  ·  view source on GitHub ↗

r"""Construct a new :class:`_expression.Select`. The public constructor for :class:`_expression.Select` is the :func:`_sql.select` function.

(
        self, *entities: _ColumnsClauseArgument[Any], **dialect_kw: Any
    )

Source from the content-addressed store, hash-verified

5377 return stmt
5378
5379 def __init__(
5380 self, *entities: _ColumnsClauseArgument[Any], **dialect_kw: Any
5381 ):
5382 r"""Construct a new :class:`_expression.Select`.
5383
5384 The public constructor for :class:`_expression.Select` is the
5385 :func:`_sql.select` function.
5386
5387 """
5388 self._raw_columns = [
5389 coercions.expect(
5390 roles.ColumnsClauseRole, ent, apply_propagate_attrs=self
5391 )
5392 for ent in entities
5393 ]
5394 GenerativeSelect.__init__(self)
5395
5396 def _scalar_type(self) -> TypeEngine[Any]:
5397 if not self._raw_columns:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected