Package gen :: Package db :: Module dbdir
[frames] | no frames]

Module dbdir

source code

Provide the Berkeley DB (DBDir) database backend for GRAMPS. This is used since GRAMPS version 3.0

Classes
  GrampsDBDirCursor
  GrampsDBDirAssocCursor
  GrampsDBDirDupCursor
Cursor that includes handling for duplicate keys.
  GrampsDBDir
GRAMPS database object.
  BdbTransaction
Functions
 
find_surname(key, data) source code
 
find_idmap(key, data) source code
 
find_primary_handle(key, data) source code
 
find_referenced_handle(key, data) source code
 
clear_lock_file(name) source code
 
write_lock_file(name) source code
Variables
  log = logging.getLogger(".GrampsDb")
  IDTRANS = 'person_id'
  FIDTRANS = 'family_id'
  PIDTRANS = 'place_id'
  OIDTRANS = 'media_id'
  EIDTRANS = 'event_id'
  RIDTRANS = 'repo_id'
  NIDTRANS = 'note_id'
  SIDTRANS = 'source_id'
  SURNAMES = 'surnames'
  NAME_GROUP = 'name_group'
  META = 'meta_data'
  FAMILY_TBL = 'family'
  PLACES_TBL = 'place'
  SOURCES_TBL = 'source'
  MEDIA_TBL = 'media'
  EVENTS_TBL = 'event'
  PERSON_TBL = 'person'
  REPO_TBL = 'repo'
  NOTE_TBL = 'note'
  REF_MAP = 'reference_map'
  REF_PRI = 'primary_map'
  REF_REF = 'referenced_map'
  DBERRS = db.DBRunRecoveryError, db.DBAccessError, db.DBPageNot...

Imports: pickle, os, time, InstanceType, _, dbshelve, db, logging, GenderStats, Person, Family, Event, Place, Source, MediaObject, Repository, Note, GrampsDbBase, KEY_TO_CLASS_MAP, CLASS_TO_KEY_MAP, REFERENCE_KEY, Transaction, FileVersionError, UpdateCallback, GrampsCursor, Errors


Variables Details

DBERRS

Value:
db.DBRunRecoveryError, db.DBAccessError, db.DBPageNotFoundError, db.DB\
InvalidArgError