Newbie Database.

Gillou nospam at bigfoot.com
Mon May 27 15:38:32 EDT 2002


"Corey Woodworth" <schitz0boy at hotmail.com> a écrit dans le message news:
24d8090a.0205270854.6cadc50b at posting.google.com...
> How should I save my database file for instance? I was thinking a text
> file full of strings like this perhaps:
>
> songname::artist::performer::filename:: ... ...

You'd better use a real database engine rather than a flat formatted file.
"Many to 1", "1 to many" or (better) "many to many" relations are very
difficult to handle in a flat text file. Even in XML, it's quite hard to
handle.

>
> But I think there are probably better ways. Are there any tutorials on
> databases? Modules I should look into? Similar python programs that I
> should read the sources for?

Start here to have some enlightenments on how to use databases from python:

http://www.python.org/sigs/db-sig/

But you should first focus on your database design/structure before diving
into the python code.

>
> Thanks in advance!
>

Welcome

> Corey




More information about the Python-list mailing list