Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heapwolf/level-mget
get multiple values from leveldb
https://github.com/heapwolf/level-mget
Last synced: 25 days ago
JSON representation
get multiple values from leveldb
- Host: GitHub
- URL: https://github.com/heapwolf/level-mget
- Owner: heapwolf
- Created: 2014-06-27T19:24:33.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-11-26T22:47:32.000Z (almost 7 years ago)
- Last Synced: 2024-10-18T16:13:29.017Z (26 days ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 7
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SYNOPSIS
get multiple keys leveldb, returns a `Map` of errors and values.# USAGE
```js
const mget = require('level-mget')
``````js
mget(db, ['foo', 'bar'], function(errors, values) {
errors // => Map()
values // => Map()
});
``````js
const [errors, values] = await mget(['foo', 'bar'])
errors // => Map()
values // => Map()
```