Database access object.
The class depends od database API module - Python DB-API 2.0 in this
case.
Method Summary |
|
__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)
Get list of rows from database. |
|
rollback (self)
Rollback database transactions. |
|
update (self,
query,
data,
key)
Update row in database relation. |
Inherited from object |
|
__delattr__ (...)
x.__delattr__('name') <==> del x.name |
|
__getattribute__ (...)
x.__getattribute__('name') <==> x.name |
|
__hash__ (x)
x.__hash__() <==> hash(x) |
|
__new__ (T,
S,
...)
T.__new__(S, ...) -> a new object with type S, a subtype of T |
|
__reduce__ (...)
helper for pickle |
|
__reduce_ex__ (...)
helper for pickle |
|
__repr__ (x)
x.__repr__() <==> repr(x) |
|
__setattr__ (...)
x.__setattr__('name', value) <==> x.name = value |
|
__str__ (x)
x.__str__() <==> str(x) |