gdbm – GNU’s version of the dbm library

Purpose:GNU’s version of the dbm library
Available In:1.4 and later

gdbm is GNU’s updated version of the dbm library. It follows the same semantics as the other DBM implementations described under anydbm, with a few changes to the flags supported by open().

Besides the standard 'r', 'w', 'c', and 'n' flags, gdbm.open() supports:

  • 'f' to open the database in fast mode. In fast mode, writes to the database are not synchronized.
  • 's' to open the database in synchronized mode. Changes to the database are written to the file as they are made, rather than being delayed until the database is closed or synced explicitly.
  • 'u' to open the database unlocked.

See also

gdbm
The standard library documentation for this module.
dbm
The dbm module.
anydbm
The anydbm module.