To build: run make.
To see build instructions: read Makefile.
inspect a 0.9 file:
$ podman run -ti --rm -v ../pdns-data:/data localhost/lmdb-converter:debian mdb_dump-0.9 -n -a /data/pdns.lmdb | head
VERSION=3
format=bytevalue
database=domains_v5
see that 0.9 cannot read 1.0 files:
$ podman run -ti --rm -v /tmp:/data localhost/lmdb-converter:debian mdb_dump-0.9 -n -a /data/pdns.lmdb | head
mdb_env_open failed, error -30793 MDB_INVALID: File is not an LMDB file
inspect a 1.0 file:
$ podman run -ti --rm -v /tmp:/data localhost/lmdb-converter:debian mdb_dump-1.0 -n -a /data/pdns.lmdb | head
VERSION=3
format=bytevalue
database=domains_v5
converting a file from 0.9 to 1.0, then verifying the conversion:
$ podman run -ti --rm -v ../pdns-data:/data localhost/lmdb-converter:debian
root@cdbb30f8c3d4:/# mdb_dump-0.9 -a -n /data/pdns.lmdb |mdb_load-1.0 -n /tmp/pdns.lmdb10
root@4aaef9790119:/# diff -u <(mdb_dump-0.9 -a -n /data/pdns.lmdb) <(mdb_dump-1.0 -a -n /tmp/pdns.lmdb10 | grep -v ^mapaddr) ; echo $?
0