summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/ext/declarative.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-08-30 20:10:03 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-08-30 20:10:03 -0400
commit3d439e180103e3b1aab14094912bb566da2d7f5d (patch)
tree0dc336ae715363f2405187097643c7b21bed8f8d /lib/sqlalchemy/ext/declarative.py
parent092fbb40eb72d08a9eb433a6ac182723af774201 (diff)
downloadsqlalchemy-3d439e180103e3b1aab14094912bb566da2d7f5d.tar.gz
- a large hill to climb. Added declarative examples to all the
"basic relationship" examples, cleaned up the examples and added some more explicitness. Also renamed "treenodes" to "nodes" and added self-referential declarative example. - Added info/examples on how to join tables directly when querying with joined table inheritance. - Starting to talk about hybrids in the main mapper docs some more. introducoed the idea that synonyms are on their way out. - SQL expressions as mapped attributes also gets better verbiage, alternative approaches to them, including hybrids. - modernized the hybrid example. - object_session() as a standalone function wasn't documented ?!
Diffstat (limited to 'lib/sqlalchemy/ext/declarative.py')
-rwxr-xr-xlib/sqlalchemy/ext/declarative.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/ext/declarative.py b/lib/sqlalchemy/ext/declarative.py
index 3201433f4..b1b083e80 100755
--- a/lib/sqlalchemy/ext/declarative.py
+++ b/lib/sqlalchemy/ext/declarative.py
@@ -251,7 +251,8 @@ Similarly, :func:`comparable_using` is a front end for the
Defining SQL Expressions
========================
-The usage of :func:`.column_property` with Declarative is
+The usage of :func:`.column_property` with Declarative to define
+load-time, mapped SQL expressions is
pretty much the same as that described in
:ref:`mapper_sql_expressions`. Local columns within the same
class declaration can be referenced directly::