]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- merge ticket_1418 branch, [ticket:1418]
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 7 Oct 2013 00:29:08 +0000 (20:29 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 7 Oct 2013 00:29:08 +0000 (20:29 -0400)
commit1b25ed907fb7311d28d2273c9b9858b50c1a7afc
tree74bd8df8638dbd1f1e48b1ca660963944be0be3d
parentd79e1d69a6b2d0d1cc18d3d9d0283ef4a77925bc
- merge ticket_1418 branch, [ticket:1418]
- The system of loader options has been entirely rearchitected to build
upon a much more comprehensive base, the :class:`.Load` object.  This
base allows any common loader option like :func:`.joinedload`,
:func:`.defer`, etc. to be used in a "chained" style for the purpose
of specifying options down a path, such as ``joinedload("foo").subqueryload("bar")``.
The new system supersedes the usage of dot-separated path names,
multiple attributes within options, and the usage of ``_all()`` options.
-  Added a new load option :func:`.orm.load_only`.  This allows a series
of column names to be specified as loading "only" those attributes,
deferring the rest.
26 files changed:
doc/build/changelog/changelog_09.rst
doc/build/changelog/migration_09.rst
doc/build/orm/inheritance.rst
doc/build/orm/loading.rst
doc/build/orm/mapper_config.rst
doc/build/orm/query.rst
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/base.py
lib/sqlalchemy/orm/descriptor_props.py
lib/sqlalchemy/orm/dynamic.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/path_registry.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/relationships.py
lib/sqlalchemy/orm/strategies.py
lib/sqlalchemy/orm/strategy_options.py [new file with mode: 0644]
test/orm/test_cascade.py
test/orm/test_default_strategies.py
test/orm/test_deferred.py [new file with mode: 0644]
test/orm/test_eager_relations.py
test/orm/test_froms.py
test/orm/test_mapper.py
test/orm/test_options.py [new file with mode: 0644]
test/orm/test_pickled.py
test/orm/test_query.py