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 for more information about these types.

 -- Function: close-database database
     This function closes database DATABASE.

 -- Function: database-live-p object
     This function returns t if OBJECT is an active database, else nil.

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

 -- Function: get-database key database &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 database
     This function maps FUNCTION over entries in DATABASE, calling it with two args, each key and value in the database.

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

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

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

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

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

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

 -- Function: database-type database
     This function returns the type of DATABASE.