# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2000-2007 Donald N. Allingham # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # gen/db/__init__.py # $Id$ # """ Gramps Database API. Database Architecture ===================== Access to the database is made through Python classes. Exactly what functionality you have is dependent on the properties of the database. For example, if you are accessing a read-only view, then you will only have access to a subset of the methods available. At the root of any database interface is either DbReadBase and/or DbWriteBase. These define the methods to read and write to a database, respectively. The full database hierarchy is: - B{DbBsddb} - read and write implementation to BSDDB databases (U{gen/db/write}) - B{DbWriteBase} - virtual and implementation-independent methods for reading data (U{gen/db/base.py}) - B{DbBsddbRead} - read-only (accessors, getters) implementation to BSDDB databases (U{gen/db/read.py}) - B{DbDjango} - read and write implementation to Django-based databases (U{web/dbdjango.py}. """ from base import * from dbconst import * from cursor import * from read import * from bsddbtxn import * from txn import * from undoredo import * from exceptions import * from write import * from backup import backup, restore