https://github.com/co2-git/maeva-json
JSON in-memory database compatible with maeva
https://github.com/co2-git/maeva-json
Last synced: about 1 year ago
JSON representation
JSON in-memory database compatible with maeva
- Host: GitHub
- URL: https://github.com/co2-git/maeva-json
- Owner: co2-git
- Created: 2017-12-09T15:14:40.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-23T18:18:05.000Z (over 8 years ago)
- Last Synced: 2025-02-01T16:23:20.866Z (over 1 year ago)
- Language: JavaScript
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
maeva-json
===
JSON in-memory database compatible with maeva
# Usage
```js
import * as data from 'maeva';
import json from 'maeva-json';
// connect
data.connect(json());
// define a model
const usersModel = data.model('users', {email: String});
// fire queries
const user = await data.insertOne(usersModel, {email: 'joe@doe.com'});
// {id: 1, "email": "joe@doe.com"}
```
View [maeva](https://github.com/co2-git/maeva) for more information.