cheidb
v0.1.1
Published
CheiDB core database engine - filesystem-backed storage engine, query engine, indexing, schema validation and WAL, for use as a standalone embedded database. Also ships an HTTP client SDK at "cheidb/client" for talking to a CheiDB Server.
Maintainers
Readme
cheidb
Client for CheiDB — a self-built database engine and platform.
Install
npm install cheidbUsage — embedded engine
const cheidb = require("cheidb");
const db = await cheidb.open("./data");Usage — HTTP client (talk to a CheiDB Server)
const { CheiClient } = require("cheidb/client");
const db = new CheiClient({
url: "https://your-cheidb-server.example.com",
apiKey: "YOUR_API_KEY",
});
const users = db.collection("users", "mydb");
await users.insert({ name: "Bowo" });
const rows = await users.find({}).limit(10).exec();See the full documentation for queries, indexes, schema, and more.
License
MIT
