Home | Trees | Index | Help |
|
---|
Package bazaar :: Module motor :: Class Motor |
|
Database access object.
The class depends od database API module - Python DB-API 2.0 in this case.Method Summary | |
---|---|
Initialize database access object. | |
Insert row into database relation. | |
Close database connection. | |
Commit pending database transactions. | |
Connect with database. | |
Delete row from database relation. | |
Execute batch query with list of data parameters. | |
Get list of rows from database. | |
Rollback database transactions. | |
Update row in database relation. |
Instance Variable Summary | |
---|---|
conn : Python DB API connection object. | |
dbmod : Python DB API module. |
Method Details |
---|
__init__(self,
dbmod)
Initialize database access object.
|
add(self, query, data)Insert row into database relation.
|
closeDBConn(self)Close database connection.
|
commit(self)Commit pending database transactions. |
connectDB(self, dsn)Connect with database.
|
delete(self, query, key)Delete row from database relation.
|
executeMany(self, query, data_list)Execute batch query with list of data parameters.
|
getData(self, query, param=None)Get list of rows from database. Method returns dictionary per database relation row. The dictionary keys are relation column names and dictionary values are column values of the relation row.
|
rollback(self)Rollback database transactions. |
update(self, query, data, key)Update row in database relation.
|
Instance Variable Details |
---|
connPython DB API connection object. |
dbmodPython DB API module. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.0 on Tue Mar 23 14:53:30 2004 | http://epydoc.sf.net |