JSPM

  • Created
  • Published
  • Downloads 1100
  • Score
    100M100P100Q109593F
  • License MIT

NoSQL Everywhere

Package Exports

  • @nano-sql/core
  • @nano-sql/core/lib/adapters/webSQL
  • @nano-sql/core/lib/interfaces
  • @nano-sql/core/lib/utilities

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nano-sql/core) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Super flexible database/datastore for the client, server & mobile devices.

nanoSQL Logo

npm TSlint npm downloads

NPM

NanoSQL 2.0 is in BETA state right now, tons of (undocumented) breaking changes.

Current minified build: https://cdn.jsdelivr.net/npm/@nano-sql/core@2.0.0rc1/dist/nano-sql.min.js

#Example

nSQL().connect({
    id: "test",
    tables: [
        {
            name: "users",
            model: [
                { key: "id:uuid", props: ["pk()"] },
                { key: "name:string" },
                { key: "age:int", default: 18 },
                { key: "meta:obj[]", model: [
                    {key: "color:string"}
                ] },
                { key: "tags:string[]", default: [] }
            ],
            indexes: [
                { name: "Tags", key: "tags:string[]" },
                { name: "Color", key: "meta.color:string" },
                { name: "Age", key: "age:int"}
            ]
        }
    ],
}).then(() => {
    return nSQL("users").query("upsert", {name: "Jeb", age: 20, meta: {}, tags: []}).exec();
}).then(() => {
    return nSQL("users").query("select").exec();
}).then((rows) => {
    console.log(rows);
})

#2.0 Progress

  • Query Engine
  • Hook/Filter System
  • Memory/Local Storage Adapter
  • ORM Updates
  • Event System
  • Core Tests
  • Adapter Tests
  • Indexed DB/WebSQL/RocksDB Adapters
  • SQLite3, Cordova, Redis, ReactNative, MySQL Adapters
  • Net Plugin (Offline Syncing)
  • Search Plugin
  • History Plugin
  • SQLite Query Support
  • GraphQL Query Support
  • MongoDB Query Support
  • ReQL Query Support