]> 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:52:34 +0000 (15:52 -0400)
commit8373d7599edae2fd85f505d6610d92ede4ecf66f
treeedd1e0f049ea5ef8338ac39ddcf023e2d2963629
parent76290f87ccd75d7a64d66b3a3b7d4303983a8dbd
- 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.
doc/build/changelog/changelog_08.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