Next: , Previous: Connecting to a Database, Up: Databases


56.2 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.