@mapsql/db
v1.0.0
Published
Another in memory map store with a SQL like api
Downloads
4
Readme
mapsql-db
Motivation
Modularizing the mapsql project.
Installation
$ npm install @mapsql/db
$
$ # Install the database components
$ npm install @mapsql/store-adapter # store adapter (default)
$ npm install @mapsql/query-parser # query parser (default)
Usage
const { default: Database } = require("@mapsql/db");
// import Database from "@mapsql/db";
const db = new Database();
db.create("alphabets");
db.table("alphabets")
.insert({ name: "a", caps: "A", code: 65, pos: 1, index: 0 })
.select(); // [{ id: 1, name: "a", caps: "A", code: 65, pos: 1, index: 0 }]
License
MIT © wmik