MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / from_statement

Method from_statement

lib/sqlalchemy/sql/selectable.py:5755–5778  ·  view source on GitHub ↗

Apply the columns which this :class:`.Select` would select onto another statement. This operation is :term:`plugin-specific` and will raise a not supported exception if this :class:`_sql.Select` does not select from plugin-enabled entities. The statement is

(
        self, statement: roles.ReturnsRowsRole
    )

Source from the content-addressed store, hash-verified

5753 return meth(self)
5754
5755 def from_statement(
5756 self, statement: roles.ReturnsRowsRole
5757 ) -> ExecutableReturnsRows:
5758 """Apply the columns which this :class:`.Select` would select
5759 onto another statement.
5760
5761 This operation is :term:`plugin-specific` and will raise a not
5762 supported exception if this :class:`_sql.Select` does not select from
5763 plugin-enabled entities.
5764
5765
5766 The statement is typically either a :func:`_expression.text` or
5767 :func:`_expression.select` construct, and should return the set of
5768 columns appropriate to the entities represented by this
5769 :class:`.Select`.
5770
5771 .. seealso::
5772
5773 :ref:`orm_queryguide_selecting_text` - usage examples in the
5774 ORM Querying Guide
5775
5776 """
5777 meth = SelectState.get_plugin_class(self).from_statement
5778 return meth(self, statement)
5779
5780 @_generative
5781 def join(

Callers

nothing calls this directly

Calls 1

get_plugin_classMethod · 0.45

Tested by

no test coverage detected