Module database
[show private | hide private]
[frames | no frames]

Module database

Interface to the 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
  ensurebitpimserials(dict)
Ensures that all records have a BitPim serial.
  ensurerecordtype(dict, factory)
  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.
  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
  sqlquote(s)
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)

Generated by Epydoc 2.1 on Fri Aug 15 18:58:23 2008 http://epydoc.sf.net