On Wed, Aug 21, 2002 at 12:21:17PM -0400, Jeff Trawick wrote: > questions for *dbm gurus... is a switch from 1.3's ndbm usage to > apr-util's built-in sdbm going to hurt anybody (file compatibility)? > > is it going to be necessary to let the admin choose the file format > from among the formats supported by apr-util?
That would be best. The admin could then select GDBM moving forwards (the best DBM of the bunch) [and assuming the admin can convert any pre-existing ndbm files to gdbm thru some tool] > how would one easily create rewrite mappings for use with apr-util's > sdbm support? Perl includes support for sdbm, and our record sizes / file layout is aligned with Perl to support this, actually. [ unfortunately, sdbm files are not self-describing; it is possible to have two sdbm files that were created with differently configured sdbm's and (thus) have them be incompatible ] The 'testdbm' program in apr-util is actually a little command-line utility. There is an open question of moving it to a 'util' directory rather than calling it a test. In any case, you can use testdbm to construct sdbm files. Cheers, -g -- Greg Stein, http://www.lyra.org/
