-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
After inserting an entry with key = [0x0?, 0x??, 0x??, 0x??], the entry does not get returned by getRange and similar functions.
import lmdb from "lmdb";
const rootDb = lmdb.open({
path: './lmdbtest1',
encoding: 'binary',
keyEncoding: 'binary',
});
const subDb = rootDb.openDB({ name: 'sub1' , encoding: 'binary', keyEncoding: 'binary'});
const buffer = Buffer.allocUnsafe(4);
buffer.writeUInt32BE(1, 0);
subDb.put(buffer, buffer);
console.log(Array.from(subDb.getRange())); // Empty.
console.log(subDb.get(buffer)); // Not empty.Metadata
Metadata
Assignees
Labels
No labels