lavastore-ql
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

LavaStore Query Language

LavaStore extension for performing local database operations.

Install

LavaStore QL can be installed using npm.

npm i lavastore-ql

View the project on NPM or GitHub.

Examples

Below is an example of an app using the LavaStore QL extension.

import LavaStore from 'lavastore';
import LSQL from 'lavastore-ql';

const app = new LavaStore("app");
app.SetPath("messages/hello", {
    id: 0,
    value: "Hello, world!"
});
const q = new LSQL(app);

const results = q.Select({
    from: "messages",
    where: {
        id: 0
    }
});
/* results = [LSDocument {
     id: "hello",
     fields: { id: 0, value: "Hello, world!" },
     collections: {}
   }] */

Package Sidebar

Install

npm i lavastore-ql

Weekly Downloads

1

Version

1.0.5

License

MIT

Unpacked Size

7.83 kB

Total Files

5

Last publish

Collaborators

  • williamragstad