In-memory database adapter for firenze.js
Install it with npm:
$ npm install --save firenze-adapter-memory
Or Bower:
$ bower install --save firenze-adapter-memory
var f = require('firenze');
var Database = f.Database;
var MemoryAdapter = require('firenze-adapter-memory');
var db = new Database({
adapter: MemoryAdapter
});
<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>
Can be run via npm:
$ npm test
MIT © Fahad Ibnay Heylaal