Attached find a trivial wrapper around tdb that might make
multi-indexed tdb files sane.
The idea is that for the modifying functions you provide a
callback function that creates a list of index strings out
of a record. Thanks to Jeremy for this good idea, I had
something more complicated in mind.
The tdb_multindex.c lib creates a random primary key for you
and sets the index records to that primary key under a tdb
transaction. That's basically the whole idea.
What's missing is tdb_reindex and tdb_traverse_indexed
skipping all the non-primary records.
The sample use in torture.c will certainly be expanded.
Description: Text Data