kriszyp / lmdb-js

Simple, efficient, ultra-fast, scalable data store wrapper for LMDB
Other
479 stars 39 forks source link

ordered-binary values format #249

Open morteza102030 opened 12 months ago

morteza102030 commented 12 months ago

hello i have some problem in saving data


const db = open({
    path: '/db/2-db',
    dupSort: true,
    encoding: 'ordered-binary',
})
let text = prance 🧚🏻‍♀️🩷
db.put('key', text)
console.log(db.get('key'))

but i get this after saving prance �𝿻�‍♀️��

kriszyp commented 12 months ago

Nice catch, thank you. This should be fixed in ordered-binary@1.4.1 (I haven't updated lmdb-js yet to require this, but the version range allows this version).