Hi Joseph ,

I use Python to read the contents of a Berkeley DB Database . The
following is a small Python Script . Hope its useful. U just have to
type the name of the database in the filename .


--------------------------------------------------------------
#!/usr/bin/python
                                                                    
                                                      
from bsddb import db
                                                                    
                                                      
filename = "database.db"
mydb = db.DB()
mydb.open(filename)
cursor = mydb.cursor()
rec = cursor.first()
while rec:
        print rec
        rec = cursor.next()
mydb.close()

-----------------------------------------------------------------

Regards,
Riazuddin Nazimuddin

--- In [email protected], John Joseph <[EMAIL PROTECTED]> wrote:
>
> Hi
>    I want to check  the contents of a database which
> is  in  Berkely DB  database ,    I did google , but
> not able to do so , please advice me on how to check
> with Berkely DB to see its  database content
> ["families" of data]
>          Thanks
>               Joseph John
>
>
>
>            
> ___________________________________________________________
> 24 FIFA World Cup tickets to be won with Yahoo! Mail
http://uk.mail.yahoo.com
>






YAHOO! GROUPS LINKS




Reply via email to