ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
bsddb for simple database [very basic]
by Artur Skura other posts by this author
Aug 26 2001 10:07PM messages near this date
Re: Help: using msvcrt for file locking | Re: bsddb for simple database [very basic]
I need very simple database functionality for a weblog.

(Most things generally available are very heavy, require
Potgres/MySQL/PHP/whatever - this one will be just a little boa+a couple 
of cgi scripts, very flexible and easy to maintain).

I thought about using one of the standard db modules, like bsddb. (First
thing i have found is that documentation is quite scarce. I've seen some
examples of using marshal with bsddb, but this seems like too much now.)

I need to set up a simple database:

* key
* name
* date
* comment

What is the simplest way to do that?

If I do

mydb["0"] = "foo"

etc, I will just have standard dictionary pairs, with strings.
I need records. How do I do that? 

Is there a document describing bsddb Python interface in more detail than
the few words in the documentation?

Regards,
Artur
-- 
http://www.wolneprogramy.org
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Artur Skura
Al Gonzalez
Jerry Gitomer
Ignacio Vazquez-Abrams

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved