]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Added new method to the :func:`.insert` construct
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Jul 2013 19:51:24 +0000 (15:51 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 5 Jul 2013 19:51:24 +0000 (15:51 -0400)
commitcec89cae156903c9a77dff29a1213e70fa915b52
tree672e7cd1adf0642688251a02f420085cef48ebfe
parent29ce6db26dea9d59df9769be51e84fe5a646c555
- Added new method to the :func:`.insert` construct
:meth:`.Insert.from_select`.  Given a list of columns and
a selectable, renders ``INSERT INTO (table) (columns) SELECT ..``.
While this feature is highlighted as part of 0.9 it is also
backported to 0.8.3. [ticket:722]
- The :func:`.update`, :func:`.insert`, and :func:`.delete` constructs
will now interpret ORM entities as FROM clauses to be operated upon,
in the same way that select() already does.  Also in 0.8.3.
doc/build/changelog/changelog_08.rst
doc/build/changelog/changelog_09.rst
doc/build/changelog/migration_09.rst
lib/sqlalchemy/ext/compiler.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/suite/test_insert.py
test/orm/test_query.py
test/sql/test_insert.py