1.0.5 • Published 3 years ago

lavastore-ql v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

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: {}
   }] */
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago