From 654b462d668a2ced4e87077b9babb2590acbf983 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 25 Sep 2020 22:31:16 -0400 Subject: tutorial 2.0 WIP Add SelectBase.exists() method as it seems strange this is not available already. The Exists construct itself does not provide full SELECT-building capabilities so it makes sense this should be used more like a scalar_subquery. Make sure stream_results is getting set up when yield_per is used, for 2.0 style statements as well. this was hardcoded inside of Query.yield_per() and is now moved to take place within QueryContext. Change-Id: Icafcd4fd9b708772343d56edf40995c9e8f835d6 --- lib/sqlalchemy/sql/elements.py | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/sqlalchemy/sql/elements.py') diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py index e268abc8a..550cbea24 100644 --- a/lib/sqlalchemy/sql/elements.py +++ b/lib/sqlalchemy/sql/elements.py @@ -1655,7 +1655,6 @@ class TextClause( :ref:`sqlexpression_text` - in the Core tutorial - :ref:`orm_tutorial_literal_sql` - in the ORM tutorial """ return TextClause(text, bind=bind) -- cgit v1.2.1