| Home | Trees | Index | Help |
|
|---|
| Package picalo :: Module Database :: Class Query |
|
| Method Summary | |
|---|---|
Creates a new query object. | |
Returns whether this query is equal to another query (or list of lists). | |
__getattr__(self,
name)
| |
Run the query using the given database connection. | |
Returns the SQL for this query | |
Returns whether the table has been changed since loading | |
Saves the query to the given filename | |
Modifies the sql of this connection, potentially re-executing it with the given connection | |
Opens a spreadsheet-view of the table if Picalo is being run in GUI mode. | |
| Method Details |
|---|
__init__(self,
sql,
parameters=None,
conn=None)
Creates a new query object.
|
__eq__(self,
other)
Returns whether this query is equal to another query (or list of
lists).
|
execute(self, conn)Run the query using the given database connection.
|
get_sql(self)Returns the SQL for this query |
is_changed(self)Returns whether the table has been changed since loading |
save(self, filename)Saves the query to the given filename |
set_sql(self, sql, parameters=None, conn=None)Modifies the sql of this connection, potentially re-executing it with the given connection |
view(self)Opens a spreadsheet-view of the table if Picalo is being run in GUI mode. If Picalo is being run in console mode, it redirects to prettyprint(). This is the preferred way of viewing the data in a table. |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 20 05:38:16 2007 | http://epydoc.sf.net |