Megadex is a simple tool that removes the boilerplate for indexing structs via multiple fields. Presently it uses rkv which uses lmdb.
I mean, you could, but it is meant to be used with megadex_derive which does the heavy lifting in removing boilerplate.
This is the actual underlying DB implementation using Rkv.