bsddb: must bsddb write a file ?

Robin Dunn robin at stop.spam.alldunn.com
Fri Jun 15 12:47:20 EDT 2001


"Florian Scholz" <feedback at netlcr.de> wrote in message
news:3B28D465.229D7BF7 at netlcr.de...
> hi again..
>
> the bsddb: class (binary tree, hash-table,..)
> needs to write its data to a file:
> db = bsddb.btopen('filename','c');
>
> the file can be removed, but is there a way to avoid the file ?
>


I havn't tried it but the newer versions of Berkeley DB can do in memory
databases.  Go to http://pybsddb.sourceforge.net/ to get the Python
wrappers, and check the docs for the DB.open method.

"""
In-memory databases never intended to be shared or preserved on disk may be
created by setting both the fileName and dbName arguments to None.
"""


--
Robin Dunn
Software Craftsman
robin at AllDunn.com       Java give you jitters?
http://wxPython.org      Relax with wxPython!






More information about the Python-list mailing list