Changes

From Gramps

Using database API

No change in size, 06:02, 4 February 2013
m
Gramps
==Database Objects==
GRAMPS Gramps provides a standard interface for all database objects. The GRAMPS Gramps database object provides the interface to the lower level database. Currently, only one database interface is supported:
* GrampsBSDDB - the default database, providing access to a Berkeley DB database.
===Iterating through the database===
Frequently, it is useful to iterate through all the elements of a database. GRAMPS Gramps provides two ways of accomplishing this. The first method involves getting a list of all the handles and looping over the list. This method is the easiest to implement. An example is below:
for handle in database.get_person_handles():
person = database.get_person_from_handle(handle)

Navigation menu