Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ekristen/modella-level
Modella LevelDB Middleware
https://github.com/ekristen/modella-level
Last synced: about 2 months ago
JSON representation
Modella LevelDB Middleware
- Host: GitHub
- URL: https://github.com/ekristen/modella-level
- Owner: ekristen
- License: mit
- Created: 2015-05-06T13:12:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-26T21:31:51.000Z (almost 9 years ago)
- Last Synced: 2024-04-14T20:10:16.685Z (9 months ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 3
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Modella LevelDB
Creates find, save, remove for Modella using LevelDB
## Example
```javascript
var leveldb = require('level')
var modella_level = require('modella-level')(leveldb)var User = modella('User')
.use(modella_level)
.use(validators)
.attr('id', { required: true })
.attr('login', { required: true })new User({id: '1', login: 'me'}).save(function(err) {
if (err) {
console.log(err)
}
})
```