mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-06-01 21:38:55 -04:00
6c83ef761b
more flexible ways to set up bound parameters and return types; in particular, a :func:`.text` can now be turned into a full FROM-object, embeddable in other statements as an alias or CTE using the new method :meth:`.TextClause.columns`. [ticket:2877]
86 lines
1.5 KiB
ReStructuredText
86 lines
1.5 KiB
ReStructuredText
Selectables, Tables, FROM objects
|
|
=================================
|
|
|
|
The term "selectable" refers to any object that rows can be selected from;
|
|
in SQLAlchemy, these objects descend from :class:`.FromClause` and their
|
|
distinguishing feature is their :attr:`.FromClause.c` attribute, which is
|
|
a namespace of all the columns contained within the FROM clause (these
|
|
elements are themselves :class:`.ColumnElement` subclasses).
|
|
|
|
.. module:: sqlalchemy.sql.expression
|
|
|
|
.. autofunction:: alias
|
|
|
|
.. autofunction:: except_
|
|
|
|
.. autofunction:: except_all
|
|
|
|
.. autofunction:: exists
|
|
|
|
.. autofunction:: intersect
|
|
|
|
.. autofunction:: intersect_all
|
|
|
|
.. autofunction:: join
|
|
|
|
.. autofunction:: outerjoin
|
|
|
|
.. autofunction:: select
|
|
|
|
.. autofunction:: subquery
|
|
|
|
.. autofunction:: sqlalchemy.sql.expression.table
|
|
|
|
.. autofunction:: union
|
|
|
|
.. autofunction:: union_all
|
|
|
|
.. autoclass:: Alias
|
|
:members:
|
|
:inherited-members:
|
|
|
|
.. autoclass:: CompoundSelect
|
|
:members:
|
|
:inherited-members:
|
|
|
|
.. autoclass:: CTE
|
|
:members:
|
|
:inherited-members:
|
|
|
|
.. autoclass:: Executable
|
|
:members:
|
|
|
|
.. autoclass:: FromClause
|
|
:members:
|
|
|
|
.. autoclass:: GenerativeSelect
|
|
:members:
|
|
:inherited-members:
|
|
|
|
.. autoclass:: HasPrefixes
|
|
:members:
|
|
|
|
.. autoclass:: Join
|
|
:members:
|
|
:inherited-members:
|
|
|
|
.. autoclass:: ScalarSelect
|
|
:members:
|
|
|
|
.. autoclass:: Select
|
|
:members:
|
|
:inherited-members:
|
|
|
|
.. autoclass:: Selectable
|
|
:members:
|
|
|
|
.. autoclass:: SelectBase
|
|
:members:
|
|
|
|
.. autoclass:: TableClause
|
|
:members:
|
|
:inherited-members:
|
|
|
|
.. autoclass:: TextAsFrom
|
|
:members:
|