Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)
}
})
```