|
-
September 3rd, 2005, 01:24 AM
#1
Berkeley DB's Queue DB problem
Hi all,
In Berkeley DB, How can I store and retrieve records in queue type in Berkeley DB?.
If I want to use dbp->put(dbp, NULL, &key, &data, DB_APPEND); API to append an element to the queue type what is the value I should pass to the key field?
And how can I retrieve the storedrecords?
Any examples availabe?
My MSN & Mail: [email protected]
-
September 3rd, 2005, 04:02 AM
#2
Re: Berkeley DB's Queue DB problem
The DB->put() method stores key/data pairs in the database.
If the database supports duplicates, then the key can be the same for different DB->put().
In the key, I would put "queue" or a record number.
See exemples at:
http://www.sleepycat.com/docs/ref/am_conf/logrec.html
http://pybsddb.sourceforge.net/ref/simple_tut/put.html
http://www.datalab.uci.edu/people/xge/mlword/node9.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|