Closed pgmillon closed 2 years ago
Reported on lmdb-js: https://github.com/kriszyp/lmdb-js/issues/193
Followed up on lmdb-js, but also mentioning here that by default lmdb-js uses LMDB 0.9.90 (latest code), not 0.9.29 (latest release), which is definitely incompatible, so wouldn't expect py-lmdb to be compatible with that.
Problem solved by using a release of lmdb-js bundled with LMDB 0.9.29.
Node v18.9.1 "lmdb": "^2.6.8" Alpine 3.16.12
Install py-lmdb in addition to node/lmdb-js:
main.mjs
main.py
If DB is created by lmdb-js I have a MDB_VERSION_MISMATCH: Database environment version mismatch on the Python side. If created by py-lmdb, I have a MDB_INVALID: File is not an LMDB file on the NodeJS side.
Seems both py-lmdb & lmdb-js uses LMDB 0.9.29 as of today.