MemDOWN with sync supports
Chnages
v2.x.x
- the modularization(feature plugin) with abstract-nosql
- (
broken changes
) remove the streamable feature from buildin. this is a plugin now. - (
broken change
) defaults to disable asBuffer option.- pls use the
getBuffer
method to get as buffer.
- pls use the
v1.x.x
- Add the AbstractError and error code supports.
- see abstract-nosql to more details.
Example
var addStreamTo = var MemDB = var db = db dbdbdbdb db
Note in this example we're not even bothering to use callbacks on our .put()
methods even though they are async. We know that MemDOWN operates immediately so the data will go straight into the store.
Running our example gives:
{ key: 'dob', value: '16 February 1941' }
{ key: 'name', value: 'Yuri Irsenovich Kim' }
{ key: 'occupation', value: 'Clown' }
{ key: 'spouse', value: 'Kim Young-sook' }
Show's over folks!
Licence
MemDOWN is Copyright (c) 2013 Rod Vagg @rvagg, and contributors and licensed under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.