1.1.0 • Published 6 years ago

mapsql v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

mapsql

Travis (.com) codecov coverage semantic-release

Motivation

Implementation of a simple in-memory store with a "SQL-like" api

Installation

$ npm install mapsql

Usage

const MapSQL = require("mapsql");

const data = { foo: "bar",  bar: "foo" };

const db = new MapSQL();
db.create("baz");

db.table("baz").insert(data)
db.select() // => [{ foo: "bar", bar: "foo" }]
db.select({ foo: "bar" }) // => { foo: "bar", bar: "foo" }

API

License

MIT © wmik