Memory adapter for firenze.js ORM
JavaScript
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
src
test
.babelrc
.editorconfig
.eslintrc
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
bower.json
index.js
karma.conf.js
package.json

README.md

firenze-adapter-memory

Build Status npm Join the chat at https://gitter.im/fahad19/firenze

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