diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-09-03 18:01:59 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-09-03 18:01:59 -0400 |
commit | 904466a29320844ccc164bad4699198d3916159d (patch) | |
tree | e5aee78a187485fbdfbc19fce47ef5a65bbde797 /lib/sqlalchemy/ext/declarative.py | |
parent | 1dc927f16c72aa72f09f72ae879b4cfdc630f672 (diff) | |
parent | 6e83926657057c97239bef114e640f2b102be02c (diff) | |
download | sqlalchemy-904466a29320844ccc164bad4699198d3916159d.tar.gz |
merge latest tip
Diffstat (limited to 'lib/sqlalchemy/ext/declarative.py')
-rwxr-xr-x | lib/sqlalchemy/ext/declarative.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sqlalchemy/ext/declarative.py b/lib/sqlalchemy/ext/declarative.py index 6ecff34bb..475bb9e3a 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:: @@ -364,7 +365,9 @@ and simply pass it to declarative classes:: Some configuration schemes may find it more appropriate to use ``__table__``, such as those which already take advantage of the data-driven nature of -:class:`.Table` to customize and/or automate schema definition. +:class:`.Table` to customize and/or automate schema definition. See +the wiki example `NamingConventions <http://www.sqlalchemy.org/trac/wiki/UsageRecipes/NamingConventions>`_ +for one such example. Mapper Configuration ==================== |