non-sql
v1.0.15
Published
This is a simple non-sql database implementation that provides a number of basic database operations, such as connecting to a storage path, creating and dropping collections, inserting and updating documents, and querying for documents.
Downloads
14
Readme
non-sql Database
This is a simple non-sql database implementation that provides a number of basic database operations, such as connecting to a storage path, creating and dropping collections, inserting and updating documents, and querying for documents.
Installation
To install the library, run the following command:
Usage
To use the library, require it in your project and call the functions provided.
const db = require("non-sql");
// Connect to a storage path
db.connect("/path/to/storage");
// Create a new collection
await db.createCollection("users");
// Insert a new document into the collection
await db.updateOne("users", {}, { username: "john", password: "1234" });
// Find all documents in the collection that match a query
const users = await db.find("users", { username: "john" });
// Disconnect from the storage path
db.disconnect();