@mapsql/db
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

mapsql-db

Travis (.com) codecov coverage semantic-release npm

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 }]

See API documentation

License

MIT © wmik

Readme

Keywords

Package Sidebar

Install

npm i @mapsql/db

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

6.79 kB

Total Files

5

Last publish

Collaborators

  • wmik