non-sql

1.0.15 • Public • Published

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();

/non-sql/

    Package Sidebar

    Install

    npm i non-sql

    Weekly Downloads

    1

    Version

    1.0.15

    License

    ISC

    Unpacked Size

    7.16 kB

    Total Files

    5

    Last publish

    Collaborators

    • rami-asgm