Trees | Indices | Help |
|
---|
|
This is a module for using a SQLlite database as a collection of python objects.
For each SQL table, you derive a class from DBx. Each instance of that class corresponds to one row of the table.
Classes | |
DBMetaClass This is used by all the SQL classes, and initializes the class. |
|
SQLError Any errors raised by this module. |
|
NoSuchTable | |
ColumnMismatchError | |
DB Base class for all persistent objects in a sqlite database. |
|
DBx This class is the main interface. |
Functions | |||
|
|||
One of the classes in list_of_classes .
|
|
||
|
|||
|
Variables | |
DEBUG = 0
|
|
__package__ =
|
Imports: re, sqlite3, weakref, connect, die
Function Details |
This is used for SQL select operations on a join of several tables.
Note:
As an example, if you have a table multiselect(((x, "x1"), (x, "x2")), db, "x1.next = x2.id") |
This finds which of several variants of a table actually exists in the database. The intent is to let you upgrade from one version of table format to another.
|
This reads in a row from the database when you don't know exactly what information is available The idea is that there is a one of several possible types of objects stored in the database, and you will be happy to take whichever one is available. This makes most sense when they are different versions of the same class. You access the objects by their ID number.
Note:
Ideally, there should be a 1:1 relationship between the names of
tables in the database and the |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 22 04:25:02 2011 | http://epydoc.sourceforge.net |