| Home | Trees | Index | Help |
|
|---|
| Package picalo :: Module Database :: Class _MySQLdbConnection |
|
AbstractDecorator--+ |_Connection--+ | _MySQLdbConnection
| Method Summary | |
|---|---|
__init__(self,
dbconnection,
func,
args)
| |
Returns a string representation of this connection | |
Returns the table names in this database as a list | |
Helper method for _Connection.table(). | |
| Inherited from _Connection | |
Returns the given attribute of the class. | |
Returns a string representation of this connection | |
Commits any changes to the database. | |
Copies a table from a database into this connection. | |
| _Cursor |
Returns a cursor to the database. |
| object |
Runs executable queries (INSERT, UPDATE, DELETE) that don't return tables. |
| InsertQueryBuilder |
This method returns a helper class for creating INSERT queries. |
Returns whether the connection needs saving | |
Creates a new table in the database and posts the records in the given table. | |
| Cursor |
Runs a SELECT query that returns a result set. |
| Record |
Runs a SELECT query and returns only the first record from the result set. |
Refreshes the given table name, if it has already been pulled from the database. | |
Saves the database connection | |
| SelectQueryBuilder |
This method returns a helper class for creating simple SELECT queries. |
| Table |
This method is the primary access to databases within Picalo. |
| UpdateQueryBuilder |
This method returns a helper class for creating simple UPDATE queries. |
Creates a databaes relation matching the column names and types of the given table. | |
Returns a list of the columns in the given table | |
| Inherited from AbstractDecorator | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| Class Variable Summary | |
|---|---|
| Inherited from _Connection | |
str |
QUERY_PARAMETER = '%s'
|
| Method Details |
|---|
__repr__(self)
Returns a string representation of this connection
|
list_tables(self, refresh=True)Returns the table names in this database as a list
|
_set_table_types(self, cursor, table)Helper method for _Connection.table(). After the query is run, this method uses the cursor to set the column types appropriately.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 20 05:38:17 2007 | http://epydoc.sf.net |