Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
limonyellow committed Feb 10, 2024
1 parent 5d09b66 commit 5cc157a
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion docs/features.rst
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ becomes (respectively)
FINAL
+++++

.. note:: Currently ``FINAL`` clause is supported only for table specified in ``FROM`` clause.
.. note:: Currently ``FINAL`` clause is supported only for table specified in ``FROM`` clause. To apply ``FINAL`` modifier to all tables in a query, ``SETTINGS final = 1`` can be used.

.. code-block:: python
Expand All @@ -924,6 +924,30 @@ becomes
SELECT ... FROM ... FINAL GROUP BY ...
To apply final to all tables in the query

.. code-block:: python
session.query(t1.c.x, t2.c.x).join(
t2,
t1.c.x == t2.c.y,
).settings_final()
or

.. code-block:: python
select([t1.c.x, t2.c.x]).join(
t2,
t1.c.x == t2.c.y,
).settings_final()
becomes

.. code-block:: sql
SELECT ... FROM ... JOIN ... SETTINGS final = 1
Miscellaneous
-------------

Expand Down

0 comments on commit 5cc157a

Please sign in to comment.