473,386 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

bsddb package - I'm confused, need help

Greetings all,

I have some questions about the bsddb package that comes with Python 2.3
that I can't find answers for. I've googled and read the documentation.

1. Does the Berkeley database from Sleepycat need to be installed
separately from Python, or is it included? The documentation states
that bsddb requires the Berkeley DB library 3.1 or later, but it seems
to work without it (on Debian, at least - I don't think it's installed).

2. My anticipated application requires several users to access the same
database. I can open the same database with several users, but changes
made by one user don't show up in the other user's data, and whoever
closes the database last gets the "final say", as it were - their data
overwrites the data of the users that closed before them. I suspect the
DBEnv function is needed somehow, but I can't figure out how to make it
work. I do not get enlightenment from the updated documentation on
Sourceforge.

Can anyone help, or point me to some documentation that will explain
these things?

Thanks,
Mike
Jul 18 '05 #1
1 1518
Mike Moum wrote:
Greetings all,

I have some questions about the bsddb package that comes with Python 2.3
that I can't find answers for. I've googled and read the documentation.

1. Does the Berkeley database from Sleepycat need to be installed
separately from Python, or is it included? The documentation states
that bsddb requires the Berkeley DB library 3.1 or later, but it seems
to work without it (on Debian, at least - I don't think it's installed).

It is. Debian has a great package dependency system.
2. My anticipated application requires several users to access the same
database. I can open the same database with several users, but changes
made by one user don't show up in the other user's data, and whoever
closes the database last gets the "final say", as it were - their data
overwrites the data of the users that closed before them. I suspect the
DBEnv function is needed somehow, but I can't figure out how to make it
work. I do not get enlightenment from the updated documentation on
Sourceforge.
You almost certainly want to use DBEnv even if you don't care about
concurrent access. You also want to initialize the transaction
subsystem. There's also a hundred other important details. For a
wrapper with fewer pointy edges, you may want to take a look at atop.
It isn't finished or individually packaged/released, but at the very
least it will be an educational read.

http://www.divmod.org/Home/Projects/Atop/index.html

Can anyone help, or point me to some documentation that will explain
these things?


The Sleepycat documentation is quite complete. Reading all of
http://www.sleepycat.com/docs/ref/toc.html is not a bad idea. There is
also a Berkeley DB usenet group, comp.databases.berkeley-db, where a lot
of smart, experienced people hang out :)

Jp
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: lawrence | last post by:
Dear Peter, Do we know anyone else who writes PHP code? There is too much work to do, especially if Costin and I are going to join our software together. The easiest way for us to join our...
1
by: Cobra Pilot | last post by:
I can't figure out why these three snippits of code are not equivalent.. Can someone show me the correct way to do this... (Cut and paste sample code follows). @tbl is array of array refs: ...
7
by: Snake | last post by:
Hi guys, I have question about classes. when u create class called Test. and you define variable Test c; so does this act like( a variable c of type Test pointing to an abject )? The thing that...
3
by: Terry Olsen | last post by:
I have a string that is approximately 600 characters. I need to divide up the string into 400 character chunks. I'm having trouble with using LastIndexOf. The following code returns a value of...
30
by: carlos123 | last post by:
Ok I am working on a Hall Pass program for my computer programming class. There are 3 things that I am confused on. 1. Reading a file. 2. Taking that data read from the file and putting it into...
2
by: aszush | last post by:
//Title: Programming Assignment 1 //Version: //Copyright: Copyright (c) 1999 //Author: Andrew //Company: //Description: Computes employee's weekly gross and net pay....
4
by: Nick | last post by:
I have a critical requirement where I need to club together 4 xml files and display them in an sibngle HTML report. The xmls are generated by Java application by a normal file I/O. Is there a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.