[pybsddb] associate_foreign

Jeff Johnson n3npq.jbj at gmail.com
Thu Mar 3 02:50:15 CET 2011


On Mar 2, 2011, at 7:31 PM, Jesus Cea wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 02/03/11 09:47, Vitali Kiruta wrote:
>> first of all thanks for the excellent library. Great job.
> 
> Thanks.
> 
>> Does pybsddb support associate_foreign api as described here
>> http://download.oracle.com/docs/cd/E17076_02/html/programmer_reference/am_foreign.html
>> ?
> 
> Not yet. But I aim a complete API coverage (slowly...). The priorities,
> though, concentrate in request/needed features. Are you formally
> "requesting" this support? :). I am not familiar with this specific
> feature, though.
> 

The DB->associate_foreign() call is essentially a "white list"
for keys in a table. If the key isn't in a "white list", then
DB->associate_foreign() is a hook to fail an insertion.

The only hard part (in python) is to design in some means
in bindings with tuples/dicts/patterns to make the decision:
	Yes/No
for is the key permitted?

hth

73 de Jeff



More information about the pybsddb mailing list