firenze-adapter-memory
v0.4.0
Published
Memory adapter for firenze.js ORM
Downloads
2
Maintainers
Readme
firenze-adapter-memory
In-memory database adapter for firenze.js
Install
Install it with npm:
$ npm install --save firenze-adapter-memory
Or Bower:
$ bower install --save firenze-adapter-memory
Usage
Node.js
var f = require('firenze');
var Database = f.Database;
var MemoryAdapter = require('firenze-adapter-memory');
var db = new Database({
adapter: MemoryAdapter
});
Browser
<script src="bower_components/lodash/lodash.min.js"></script>
<script src="bower_components/async/lib/async.js"></script>
<script src="bower_components/bluebird/js/browser/bluebird.min.js"></script>
<script src="bower_components/validator-js/validator.min.js"></script>
<script src="bower_components/firenze/dist/firenze.min.js"></script>
<script src="bower_components/firenze-adapter-memory/dist/firenze-adapter-memory.min.js"></script>
<script>
// Memory adapter is availble in `firenze.MemoryAdapter`
var db = new firenze.Database({
adapter: firenze.MemoryAdapter
});
</script>
Testing
Can be run via npm:
$ npm test
License
MIT © Fahad Ibnay Heylaal