Databases
*********

 -- Function: databasep object
     This function returns non-nil if OBJECT is a database.

Connecting to a Database
========================

 -- Function: open-database file &optional type subtype access mode
     This function opens database FILE, using database method TYPE and SUBTYPE, with access rights ACCESS and permissions MODE.  ACCESS can be any combination of r w and +, for read, write, and creation flags.

     TYPE can have the value 'dbm or 'berkeley_db to select the type of database file to use.  (Note:  XEmacs may not support both of these types.)

     For a TYPE of 'dbm, there are no subtypes, so SUBTYPE should be nil.

     For a TYPE of 'berkeley_db, the following subtypes are available:  'hash, 'btree, and 'recno.  See the manpages for the Berkeley DB functions to more information about these types.

 -- Function: close-database obj
     This function closes database OBJ.

 -- Function: database-live-p obj
     This function returns t iff OBJ is an active database, else nil.

Working With a Database
=======================

 -- Function: get-database key dbase &optional default
     This function finds the value for KEY in DATABASE.  If there is no corresponding value, DEFAULT is returned (nil if DEFAULT is omitted).

 -- Function: map-database function dbase
     This function maps FUNCTION over entries in DATABASE, calling it with two args, each key and value in the database.

 -- Function: put-database key val dbase &optional replace
     This function stores KEY and VAL in DATABASE.  If optional fourth arg REPLACE is non-nil, replace any existing entry in the database.

 -- Function: remove-database key dbase
     This function removes KEY from DATABASE.

Other Database Functions
========================

 -- Function: database-file-name obj
     This function returns the filename associated with the database OBJ.

 -- Function: database-last-error &optional obj
     This function returns the last error associated with database OBJ.

 -- Function: database-subtype obj
     This function returns the subtype of database OBJ, if any.

 -- Function: database-type obj
     This function returns the type of database OBJ.