Commits

ged  committed a9f8d7d

fix typo in examples

  • Participants
  • Parent commits 548017d

Comments (0)

Files changed (1)

File doc/build/content/mappers.txt

 To add a SQL clause composed of local or external columns as a read-only, mapped column attribute, use the `column_property()` function.  Any scalar-returning `ClauseElement` may be used, as long as it has a `name` attribute; usually, you'll want to call `label()` to give it a specific name:
 
     {python}
-    mapper(User, users, properties={
+    mapper(User, users_table, properties={
         'fullname' : column_property(
             (users_table.c.firstname + " " + users_table.c.lastname).label('fullname')
         )
 Correlated subqueries may be used as well:
     
     {python}
-    mapper(User, users, properties={
+    mapper(User, users_table, properties={
         'address_count' : column_property(
                 select(
                     [func.count(addresses_table.c.address_id)],