Copyright (C) 2000-2012 |
GNU Info (python2.1-lib.info)dbhashDBM-style interface to the BSD database library =============================================== DBM-style interface to the BSD database library. This manual section was written by Fred L. Drake, Jr. <fdrake@acm.org>. The `dbhash' module provides a function to open databases using the BSD `db' library. This module mirrors the interface of the other Python database modules that provide access to DBM-style databases. The `bsddb' module is required to use `dbhash'. This module provides an exception and a function: `error' Exception raised on database errors other than `KeyError'. It is a synonym for `bsddb.error'. `open(path[, flag[, mode]])' Open a `db' database and return the database object. The PATH argument is the name of the database file. The FLAG argument can be `'r'' (the default), `'w'', `'c'' (which creates the database if it doesn't exist), or `'n'' (which always creates a new empty database). For platforms on which the BSD `db' library supports locking, an `l' can be appended to indicate that locking should be used. The optional MODE parameter is used to indicate the UNIX permission bits that should be set if a new database must be created; this will be masked by the current umask value for the process. See also: Note: anydbm Generic interface to `dbm'-style databases. Note: bsddb Lower-level interface to the BSD `db' library. Note: whichdb Utility module used to determine the type of an existing database. automatically generated by info2www version 1.2.2.9 |