0.0.7 • Published 5 years ago

sqobject v0.0.7

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

SQObject

Persistent object store with subset get and set for Node.js

Usage

import SQObject from "sqobject";

const store = new SQObject();

await store.init("./path", "file.db");

await store.set("farm.barn", {
    chickens: 7,
    cows: 2,
    name: "shed"
});
let farmBarnName = await store.get("farm.barn.name");
> shed

requirement

  • Running node with --harmony flag is required until ES6 modules and optional chaining are mainstream.

Functional

  • Initiate database
  • Close database
  • Set path
  • Get path
  • Set value
  • Get value
  • Set Object
  • Get Object
  • Cleanup of orphan nodes

To do

  • Get path faster with recursive cte
  • Set path faster with recursive cte
  • wildcards
  • Range
  • Unit tests
0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago