summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-09-08 15:43:24 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-09-08 15:43:24 -0400
commita191ded054899fe2d827b4341529f1a5ec1d711e (patch)
tree9ce7132713207ae2088cf2bd149bd3c9fcbda39e /lib
parent9f16ec981c0b4b26f319859c436d6d30c0526b89 (diff)
downloadsqlalchemy-a191ded054899fe2d827b4341529f1a5ec1d711e.tar.gz
edits
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/engine/base.py5
-rw-r--r--lib/sqlalchemy/orm/__init__.py21
2 files changed, 13 insertions, 13 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
index 63d76efa0..79cadaea9 100644
--- a/lib/sqlalchemy/engine/base.py
+++ b/lib/sqlalchemy/engine/base.py
@@ -812,10 +812,7 @@ class Connection(Connectable):
upon the connection, including its expiration or timeout state. For the
connection pool to properly manage connections, connections should be
returned to the connection pool (i.e. ``connection.close()``) whenever the
- connection is not in use. If your application has a need for management
- of multiple connections or is otherwise long running (this includes all
- web applications, threaded or not), don't hold a single connection open at
- the module level.
+ connection is not in use.
.. index::
single: thread safety; Connection
diff --git a/lib/sqlalchemy/orm/__init__.py b/lib/sqlalchemy/orm/__init__.py
index 4eae375d8..879a7b0c1 100644
--- a/lib/sqlalchemy/orm/__init__.py
+++ b/lib/sqlalchemy/orm/__init__.py
@@ -318,25 +318,28 @@ def relationship(argument, secondary=None, **kwargs):
which is already higher up in the chain. This option applies
both to joined- and subquery- eager loaders.
- :param lazy=('select'|'joined'|'subquery'|'noload'|'dynamic'): specifies
- how the related items should be loaded. Values include:
+ :param lazy='select': specifies
+ how the related items should be loaded. Default value is
+ ``select``. Values include:
- * 'select' - items should be loaded lazily when the property is first
- accessed.
+ * ``select`` - items should be loaded lazily when the property is first
+ accessed, using a separate SELECT statement.
- * 'joined' - items should be loaded "eagerly" in the same query as
- that of the parent, using a JOIN or LEFT OUTER JOIN.
+ * ``joined`` - items should be loaded "eagerly" in the same query as
+ that of the parent, using a JOIN or LEFT OUTER JOIN. Whether
+ the join is "outer" or not is determined by the ``innerjoin``
+ parameter.
- * 'subquery' - items should be loaded "eagerly" within the same
+ * ``subquery`` - items should be loaded "eagerly" within the same
query as that of the parent, using a second SQL statement
which issues a JOIN to a subquery of the original
statement.
- * 'noload' - no loading should occur at any time. This is to
+ * ``noload`` - no loading should occur at any time. This is to
support "write-only" attributes, or attributes which are
populated in some manner specific to the application.
- * 'dynamic' - the attribute will return a pre-configured
+ * ``dynamic`` - the attribute will return a pre-configured
:class:`~sqlalchemy.orm.query.Query` object for all read
operations, onto which further filtering operations can be
applied before iterating the results. The dynamic