473,804 Members | 3,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1543
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
1911
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 software together is through high level wrapper classes that take other classes for arguments. Costin and I could move toward joining the software one package at a time.
1
2102
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: This works like I want it to: foreach (@tbl) { my $key = shift @$_; $hash{$key} = ;
7
1583
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 I am confused with java where you say Test c = new Test; whre you can move this Test object around by saying "Test b" and then b = c;(so c and b points to the same object). while in c++ I think it has different meaning(like b would have different...
3
3516
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 594. value=msg(i).LastIndexOf(" "c) The following code returns a value of -1 value=msg(i).LastIndexOf(" "c,1)
30
2313
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 an array. 3. A way to access the array, and check if it matches what the user inputed (like a login program) This is what the text file looks like (unless you have a easier / more efficient way of doing it, I was reading somewhere, about...
2
2951
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. package prog1; import javax.swing.JOptionPane;
4
1733
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 way I can club them together in a presentable format for reporting purpose ? So for .g. a.xml, b.xml, c.xml and d.xml. These xmls I want to display in an html report say report.html in a 4 columns in java.
0
9710
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9589
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10329
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9163
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6858
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3830
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3000
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.