Thread: [SQL-CVS] r3771 - SQLObject/branches/0.9/docs
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2009-01-26 18:16:47
|
Author: phd Date: 2009-01-26 11:16:35 -0700 (Mon, 26 Jan 2009) New Revision: 3771 Modified: SQLObject/branches/0.9/docs/sqlobject-architecture.txt Log: Documentation update. Modified: SQLObject/branches/0.9/docs/sqlobject-architecture.txt =================================================================== --- SQLObject/branches/0.9/docs/sqlobject-architecture.txt 2009-01-13 17:08:23 UTC (rev 3770) +++ SQLObject/branches/0.9/docs/sqlobject-architecture.txt 2009-01-26 18:16:35 UTC (rev 3771) @@ -15,7 +15,7 @@ | > How does the select(...) method know what to do? -In short, .select() recusively evaluates the top-most SQLExpression to a +In short, .select() recursively evaluates the top-most SQLExpression to a string: SQLExpression("foo", ">", 30) => "foo > 30" @@ -26,12 +26,13 @@ produces an instance of SelectResults class that upon being iterated over produces an instance of Iteration class that upon calling its .next() method (it is iterator!) construct the SQL query string, passes it to the -backend, fetches the results and passes them back to the user. +backend, fetches the results, wraps every row as SQLObject instance and +passes them back to the user. For the details of the implementation see sqlobject/main.py for SQLObject, -sqlbuilder.py for SQLExpression, sqlobject/dbconnection.py for DBConnection -class (that constructs the query strings) and Iteration class, and -different subdirectories of sqlobject for concrete implementations of +sqlobject/sqlbuilder.py for SQLExpression, sqlobject/dbconnection.py for +DBConnection class (that constructs the query strings) and Iteration class, +and different subdirectories of sqlobject for concrete implementations of connection classes - different backends require different query strings. .. image:: http://sourceforge.net/sflogo.php?group_id=74338&type=4 |