mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
minor documentation cleanup. mention the bsddb.db interface explicitly by name.
This commit is contained in:
parent
506f7b559a
commit
b526a29dbc
1 changed files with 14 additions and 8 deletions
|
|
@ -13,23 +13,29 @@ using the appropriate open call. Bsddb objects behave generally like
|
||||||
dictionaries. Keys and values must be strings, however, so to use
|
dictionaries. Keys and values must be strings, however, so to use
|
||||||
other objects as keys or to store other kinds of objects the user must
|
other objects as keys or to store other kinds of objects the user must
|
||||||
serialize them somehow, typically using \function{marshal.dumps()} or
|
serialize them somehow, typically using \function{marshal.dumps()} or
|
||||||
\function{pickle.dumps}.
|
\function{pickle.dumps()}.
|
||||||
|
|
||||||
The \module{bsddb} module requires a Berkeley DB library version from
|
The \module{bsddb} module requires a Berkeley DB library version from
|
||||||
3.3 thru 4.4.
|
3.3 thru 4.4.
|
||||||
|
|
||||||
\begin{seealso}
|
\begin{seealso}
|
||||||
\seeurl{http://pybsddb.sourceforge.net/}{Website with documentation
|
\seeurl{http://pybsddb.sourceforge.net/}{The website with documentation
|
||||||
for the new python Berkeley DB interface that closely mirrors the
|
for the \module{bsddb.db} python Berkeley DB interface that closely mirrors
|
||||||
sleepycat object oriented interface provided in Berkeley DB 3 and 4.}
|
the Sleepycat object oriented interface provided in Berkeley DB 3 and 4.}
|
||||||
\seeurl{http://www.sleepycat.com/}{Sleepycat Software produces the
|
\seeurl{http://www.sleepycat.com/}{Sleepycat Software produces the
|
||||||
modern Berkeley DB library.}
|
Berkeley DB library.}
|
||||||
\end{seealso}
|
\end{seealso}
|
||||||
|
|
||||||
|
A more modern DB, DBEnv and DBSequence object interface is available in the
|
||||||
|
\module{bsddb.db} module which closely matches the Sleepycat Berkeley DB C API
|
||||||
|
documented at the above URLs. Additional features provided by the
|
||||||
|
\module{bsddb.db} API include fine tuning, transactions, logging, and
|
||||||
|
multiprocess concurrent database access.
|
||||||
|
|
||||||
The following is a description of the legacy \module{bsddb} interface
|
The following is a description of the legacy \module{bsddb} interface
|
||||||
compatible with the old python bsddb module. For details about the more
|
compatible with the old python bsddb module. Starting in Python 2.5 this
|
||||||
modern Db and DbEnv object oriented interface see the above mentioned
|
interface should be safe for multithreaded access. The \module{bsddb.db}
|
||||||
pybsddb URL.
|
API is recommended for threading users as it provides better control.
|
||||||
|
|
||||||
The \module{bsddb} module defines the following functions that create
|
The \module{bsddb} module defines the following functions that create
|
||||||
objects that access the appropriate type of Berkeley DB file. The
|
objects that access the appropriate type of Berkeley DB file. The
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue