Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OCI container images for working with 0.9 and 1.0 LMDB databases

To build: run make. To see build instructions: read Makefile.

Example usage

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

About

OCI container images with LMDB tools 0.9 and 1.0 installed

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages