[SQL-CVS] r3246 - SQLObject/trunk/docs
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2008-02-10 01:07:46
|
Author: luke Date: 2008-02-09 18:07:41 -0700 (Sat, 09 Feb 2008) New Revision: 3246 Modified: SQLObject/trunk/docs/SelectResults.txt Log: Missed definition for lazyColumns, minor style changes. Modified: SQLObject/trunk/docs/SelectResults.txt =================================================================== --- SQLObject/trunk/docs/SelectResults.txt 2008-02-09 05:40:39 UTC (rev 3245) +++ SQLObject/trunk/docs/SelectResults.txt 2008-02-10 01:07:41 UTC (rev 3246) @@ -111,7 +111,8 @@ ``lazyColumns(v)`` ~~~~~~~~~~~~~~~~~~ -?? +Only fetch the IDs for the results, the rest of the columns will be +retrieved when attributes of the returned instances are accessed. ``reversed()`` ~~~~~~~~~~~~~~ @@ -180,14 +181,14 @@ SelectResults by either a join or foreign key relationship, in the same manner as the cloning methods above. For instance:: - ``Schools.select(Schools.q.student_satisfaction>90).throughTo.teachers`` + Schools.select(Schools.q.student_satisfaction>90).throughTo.teachers returns a SelectResult of Teachers of Schools with satisfied students, assuming Schools has a SQLMultipleJoin or SQLRelatedJoin attribute named ``teachers``. Similarily, with a self-joining foreign key named ``father``:: - ``Person.select(Person.q.name=='Steve').throughTo.father.throughTo.father + Person.select(Person.q.name=='Steve').throughTo.father.throughTo.father -returns all those Persons who are the paternal grandfather of someone +returns a SelectResult of Persons who are the paternal grandfather of someone named 'Steve'. \ No newline at end of file |