mapsql

Another simple in-memory store with a 'SQL-like' api

Usage no npm install needed!

<script type="module">
  import mapsql from 'https://cdn.skypack.dev/mapsql';
</script>

README

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