| Home | Trees | Index | Help |
|
|---|
| Module ezsqlobject :: Class EzSqlDb |
|
EzDbmDb,
EzFirebirdDb,
EzMysqlDb,
EzPostgresDb,
EzSqliteDbAbstracts an SQL database into an object, whose attribute 'tables' contains a list of existing tables in the database. Accessing a table via attribute access returns a subclass of SQLObject (with an added attribute 'columns', a list of columns).
You cannot use this class directly - use the database-specific classes such as 'mysqlobj', defined in this module
See module doco for example usage
Adds the following conveniences:| Method Summary | |
|---|---|
__init__(self,
*args,
**kw)
| |
__getattr__(self,
name)
| |
createNewlyAddedTables(self)
| |
Returns a class object defining an SQLObject table | |
Executes/returns an arbitrary MySQL query | |
Removes a table from the database. | |
Interactive utility which dumps out the whole db | |
Reads a list of tables from the database | |
tableFromDb(self,
name)
| |
_log(self,
level,
msg)
| |
| Method Details |
|---|
defTable(self, _tablename=None, **kw)Returns a class object defining an SQLObject table Creates the table in the database, but ONLY if it's not already present Arguments:
|
doQuery(self, query)Executes/returns an arbitrary MySQL query |
dropTable(self, tablename, ifExists=False, dropJoinTables=True)Removes a table from the database. Arguments:
|
dump(self)Interactive utility which dumps out the whole db |
sync(self)Reads a list of tables from the database |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Fri Mar 26 13:22:45 2004 | http://epydoc.sf.net |