PyDocs

Data Persistence

dbm.gnu

not Androidnot iOSnot WASI

The dbm.gnu module provides an interface to the GDBM library, similar to the dbm.ndbm module, but with additional functionality like crash tolerance.
Symbols in dbm.gnu

e

error
Raised on dbm.gnu-specific errors, such as I/O errors.

g

gdbm.close
Close the GDBM database.
gdbm.firstkey
It’s possible to loop over every key in the database using this method and the nextkey() method.
gdbm.nextkey
Returns the key that follows key in the traversal.
gdbm.reorganize
If you have carried out a lot of deletions and would like to shrink the space used by the GDBM file, this routine will reorganize the database.
gdbm.sync
When the database has been opened in fast mode, this method forces any unwritten data to be written to the disk.

o

open
Open a GDBM database and return a gdbm object.
open_flags
A string of characters the flag parameter of open() supports.