mapsql

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i mapsql

Weekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

12.2 kB

Total Files

4

Last publish

Collaborators

  • wmik