write a built database into dir and open it back, for the tests that exercise the on-disk format itself
dir
write a built database into
dirand open it back, for the tests that exercise the on-disk format itself