granth-engine
v0.2.12
Published
The granth storage engine: schema, query planner and SQL compiler. Environment-agnostic.
Readme
granth-engine
The storage engine behind granth.
Schema parsing, the query planner, the SQL compiler and the value codec. Environment-agnostic:
give it an adapter with { all, exec, run } and it works on sqlite-wasm in a worker or on
Node's node:sqlite in a test.
Documents are JSON in a _doc column; each declared index becomes a virtual generated column
over json_extract plus a real SQLite index. The codec preserves Date, NaN, Infinity,
BigInt and null, which plain JSON silently corrupts.
Install
npm install granth-engineFull documentation: https://granthlabs.github.io
License
MIT
