| Home | Trees | Index | Help |
|
|---|
| Package picalo :: Module Database :: Class SelectQueryBuilder |
|
_BaseQueryBuilder --+
|
SelectQueryBuilder
| Method Summary | |
|---|---|
__init__(self,
tablename,
select_fields,
connection)
| |
Returns the parameters as they will be sent to the database | |
Returns the query string as it will be sent to the database. | |
Runs the query and returns a cursor to the results data set | |
Runs the query and returns a single record (i.e. | |
Runs the query and returns a Picalo table containing the results of the query. | |
| Inherited from _BaseQueryBuilder | |
Returns the item with the given field name | |
Returns the number of fields in this query | |
Allows dictionary-use of the object to call the add method. | |
| |
Adds a field/value pair to the statement, optionally skipping the add if the value is None or empty (''). | |
Adds a field/value pair to the statement for the WHERE clause. | |
Executes the SQL statement. | |
Returns the item with the given field name, or the default value if none exists | |
| Method Details |
|---|
get_parameters(self)Returns the parameters as they will be sent to the database |
get_query_string(self)Returns the query string as it will be sent to the database. |
query(self)Runs the query and returns a cursor to the results data set |
query1(self)Runs the query and returns a single record (i.e. tuple) of the first result. This is useful when you are sure you will get only one result back from the query (such as a COUNT operator). |
table(self)Runs the query and returns a Picalo table containing the results of the query. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 20 05:38:16 2007 | http://epydoc.sf.net |