0.0.7 • Published 5 years ago
sqobject v0.0.7
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