Trees | Indices | Help |
---|
|
Construct an sql select query
Sometimes it just gets ugly having all that comma and WHERE AND logic in there. This code takes care of that
|
|||
| __init__(self) | ||
|
setorderby(self,
field,
desc=False) Make the returned rows come in some order |
||
|
addfield(self,
fieldname) Add a field name to return |
||
|
addwhere(self,
boolTest) Add expressions to chain together with ANDs |
||
|
addfrom(self,
tableName) Which tables the query will pull from |
||
|
setlimit(self,
numOfItems) Set the maximum number of items to return |
||
|
__str__(self) Return the query as a string |
|
|
|
|
|
|
|
|
Trees | Indices | Help |
---|
Generated by Epydoc 3.0alpha3 on Mon Feb 5 09:50:15 2007 | http://epydoc.sourceforge.net |