|Subject:||associate function that takes callback to link databases|
It would be useful to have an associate function like that which is found in the BerkeleyDB perl module to allow associations between two databases:$status = $db->associate($secondary, \&key_callback) Associate $db with the secondary DB $secondary New key/value pairs inserted to the database will be passed to the callback which must set its third argument to the secondary key to allow lookup. If an array reference is set multiple keys secondary keys will be associated with the primary database entry. Data may be retrieved fro the secondary database using db_pget to also obtain the primary key. Secondary databased are maintained automatically.