Trees | Index | Help |
|
---|
Module database |
|
Classes | |
---|---|
basedataobject |
A base object derived from dict that is used for various records. |
Database |
|
dataobjectfactory |
Called by the code to read in objects when it needs a new object container |
ModuleBase |
Base class to implement a specific Virtual Table module with apsw. |
Exceptions | |
---|---|
IntegrityCheckFailed |
Function Summary | |
---|---|
Ensures that all records have a BitPim serial. | |
ensurerecordtype(dict,
factory)
| |
Wrap a method so that it has an exclusive lock on the database (noone else can read or write) until it has finished | |
Returns a new dict with keys being the bitpim serial for each row. | |
Returns the entry from dict whose bitpim serial matches serial | |
returns an sqlite quoted identifier (eg for when a column name is also an SQL keyword | |
returns an sqlite quoted string (the return value will begin and end with single quotes) |
Function Details |
---|
ensurebitpimserials(dict)Ensures that all records have a BitPim serial. Each item must be derived from basedataobject |
ExclusiveWrapper(method)Wrap a method so that it has an exclusive lock on the database (noone else can read or write) until it has finished |
extractbitpimserials(dict)Returns a new dict with keys being the bitpim serial for each row. Each item must be derived from basedataobject |
findentrywithbitpimserial(dict, serial)Returns the entry from dict whose bitpim serial matches serial |
idquote(s)returns an sqlite quoted identifier (eg for when a column name is also an SQL keyword The value returned is quoted in square brackets |
sqlquote(s)returns an sqlite quoted string (the return value will begin and end with single quotes) |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Fri Aug 15 18:58:23 2008 | http://epydoc.sf.net |