typestub-node-lmdb
v1.0.0
Published
Typescript wrapper around node-lmdb, with some improvement.
Downloads
20
Maintainers
Readme
typestub-node-lmdb
Typescript wrapper around node-lmdb, with some improvement.
Basically same as node-lmdb, except:
beginTxn()
is exposed only after theenv
is opened- extended
txn
to includeclear
,getObject
, andputObject
methods
| additional method | explanation | | ----------------- | ------------------------------------------------------------ | | clear | try to delete, will not throw error if the key doesn't exist | | getObject | wrap around getString with JSON.stringify* | | putObject | wrap around putString with JSON.parse* |
*: exception raised from JSON.stringify/parse is not handled