<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
I am not sure if that feature is interfaced in pybsddb yet; but before
that, I will ask you some other things: When you are opening a db, it
would be better to provide dbtype and flags so we can see what the
dbtype and flags of it are. Also, if that db did not exist already, it
won't open without DB_CREATE flag. The name "DB_MULTIPLE" is not
importad to global scope so you can access it via "db" module name as
db.DB_MULTIPLE.<br>
<br>
In addition to these, saying "this didn't work" does not give any clues
to us. Please provide the exceptions throwed.<br>
<br>
Have a good day,<br>
hasanyasin<br>
<br>
On 27.03.2010 00:38, Joepaul Puthenangadi wrote:
<blockquote cite="mid:571213.21714.qm@web111510.mail.gq1.yahoo.com"
type="cite">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td
style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;"
valign="top"><span style="font-family: arial,helvetica,sans-serif;">Hi
there,</span><br style="font-family: arial,helvetica,sans-serif;">
<br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;">Was
reading through the documentation and found something on the oracle
website about the possibility of loading bulk key and values into a
hash or btree db using the flag = </span><code
style="font-family: arial,helvetica,sans-serif;" class="literal">DB_MULTIPLE.
Not trying to be picky or anything just wanted to know whether that is
something yet to be implemented to </code><span
style="font-family: arial,helvetica,sans-serif;">bsddb3 module.?</span><br
style="font-family: arial,helvetica,sans-serif;">
<br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;">Again
thanks a lot for the wonderful module.</span><br
style="font-family: arial,helvetica,sans-serif;">
<br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;">Thanks
again</span><br>
<br>
#Sample code<br>
<code class="literal"><br>
</code>from bsddb3 import db<br>
<br>
db1 = db.DB()<br>
db1.open("Temp.db")<br>
<br>
keys = ('key1','key2','key3')<br>
val = ('10','15','20')<br>
<br>
db1.put(keys, val, None, DB_MULTIPLE)<br>
<br>
db1.close()<br>
<br>
###<br>
This did not work. Any thoughts.?<br>
<br>
Thanks<br>
</td>
</tr>
</tbody>
</table>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
pybsddb mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pybsddb@jcea.es">pybsddb@jcea.es</a>
<a class="moz-txt-link-freetext" href="https://mailman.jcea.es:28443/listinfo/pybsddb">https://mailman.jcea.es:28443/listinfo/pybsddb</a>
<a class="moz-txt-link-freetext" href="http://www.jcea.es/programacion/pybsddb.htm">http://www.jcea.es/programacion/pybsddb.htm</a></pre>
</blockquote>
</body>
</html>