Line | |
---|
1 | \section{\module{whichdb} ---
|
---|
2 | Guess which DBM module created a database}
|
---|
3 |
|
---|
4 | \declaremodule{standard}{whichdb}
|
---|
5 | \modulesynopsis{Guess which DBM-style module created a given database.}
|
---|
6 |
|
---|
7 |
|
---|
8 | The single function in this module attempts to guess which of the
|
---|
9 | several simple database modules available--\refmodule{dbm},
|
---|
10 | \refmodule{gdbm}, or \refmodule{dbhash}--should be used to open a
|
---|
11 | given file.
|
---|
12 |
|
---|
13 | \begin{funcdesc}{whichdb}{filename}
|
---|
14 | Returns one of the following values: \code{None} if the file can't be
|
---|
15 | opened because it's unreadable or doesn't exist; the empty string
|
---|
16 | (\code{''}) if the file's format can't be guessed; or a string
|
---|
17 | containing the required module name, such as \code{'dbm'} or
|
---|
18 | \code{'gdbm'}.
|
---|
19 | \end{funcdesc}
|
---|
20 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.