1.0.15 • Published 1 year ago

non-sql v1.0.15

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago