]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Streamline visitors.iterate
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 May 2020 20:08:33 +0000 (16:08 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 May 2020 20:21:54 +0000 (16:21 -0400)
commit53af60b3536221f2503af29c1e90cf9db1295faf
tree13d5e142ed0759e63fb4fee7aa244519703e42ed
parentde1fd55af4ef352ebbc95e03d868aab2995a8261
Streamline visitors.iterate

This method might be used more significantly in the
ORM refactor, so further refine it.

* all get_children() methods now work entirely based on iterators.
  Basically only select() was sensitive to this anymore and it now
  chains the iterators together

* remove all kinds of flags like column_collections, schema_visitor
  that apparently aren't used anymore.

* remove the "depthfirst" visitors as these don't seem to be
  used either.

* make sure select() yields its columns first as these will be used
  to determine the current mapper.

Change-Id: I05273a2d5306a57c2d1b0979050748cf3ac964bf
doc/build/changelog/unreleased_14/removed_depthfirst.rst [new file with mode: 0644]
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/sql/selectable.py
lib/sqlalchemy/sql/traversals.py
lib/sqlalchemy/sql/util.py
lib/sqlalchemy/sql/visitors.py
test/sql/test_compare.py
test/sql/test_utils.py