https://github.com/cloudhead/nimbus
nimble, durable, document store
https://github.com/cloudhead/nimbus
Last synced: 5 months ago
JSON representation
nimble, durable, document store
- Host: GitHub
- URL: https://github.com/cloudhead/nimbus
- Owner: cloudhead
- License: apache-2.0
- Created: 2010-08-31T20:27:33.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2010-09-01T21:32:13.000Z (over 15 years ago)
- Last Synced: 2025-03-26T09:12:09.094Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 104 KB
- Stars: 13
- Watchers: 1
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
nimbus
======
> nimble, durable, document store.
synopsis
--------
var nimbus = require('nimbus');
var db = new(nimbus.DB);
db.load('./database.nimbus');
db.put({ _id: 32, name: 'joseline', profession: 'botanist' });
db.get(32).name; // 'joseline'
db.update(32, { profession: 'florist' });
db.get(32).profession; // 'florist'
db.remove(32);
db.get(32); // null
db.filter(function (row) {
return row.name.match(/^[Jj]/);
}); // [{ _id: 32, name: 'joseline', profession: 'florist' }]
db.put({ _id: 45, name: 'locke' }, function (err) {
if (! err) {
// The data has been persisted to disk.
}
}); // The data is in memory.
More information coming soon.
license
-------
See `LICENSE`.
Copyright (c) 2010 - Alexis Sellier