https://github.com/co2-git/wallets-json
JSON in-memory database compatible with maeva
https://github.com/co2-git/wallets-json
Last synced: 12 months ago
JSON representation
JSON in-memory database compatible with maeva
- Host: GitHub
- URL: https://github.com/co2-git/wallets-json
- Owner: co2-git
- Created: 2017-12-05T23:42:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T21:57:00.000Z (over 8 years ago)
- Last Synced: 2025-02-01T16:23:10.327Z (over 1 year ago)
- Language: JavaScript
- Size: 32.2 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.