1.0.3 • Published 1 year ago

mabnadb v1.0.3

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

MabnaDB

npm.io

Description: 

"MabnaDB" is a powerful TypeScript library designed for seamless data storage, retrieval, and management. Drawing inspiration from the efficiency of some well-known offline databases, MabnaDB offers a developer-friendly experience for handling data in your applications. Whether you are building web, mobile, or server applications, MabnaDB simplifies the process of working with data, providing a robust and flexible storage solution.

Slogan: “Empower Your Data with MabnaDB – Effortless Storage, Seamless Retrieval.”


Installation:

npm install mabnadb

Simple Usage:

// src/example.ts
import MabnaDB from './MabnaDB';

const db = new MabnaDB();
db.put({ _id: '1', name: 'John' });
const result = db.get('1');
console.log(result);

Key Types:

TypeDescription
MabnaDBDocumentRepresents a database document with a mandatory _id field and optional attachments.
MabnaDBAttachmentRepresents an attachment associated with a document, consisting of a name and data.
MabnaDBIndexRepresents an index on a specified field, with an optional unique flag.
MabnaDBChangeEventRepresents a change event with information about the operation and the affected document.
MabnaDBTaskRepresents a background task with an ID, type, status, and optional result.
MabnaDBSettingsContains settings for the database, including an optional debug mode.
MabnaDBPluginRepresents a plugin that can be applied to the database.

Key Features and Methods:

Feature - MethodDescription
ConstructorRepresents a database document with a mandatory _id field and optional attachments.
CRUD Operations 
Indexing  
Replication and Synchronization 
Attachments  
Map-Reduce Views 
Database Information / getDatabaseInfo 
Utility Methods 
Event Handling 

This class serves as a foundation for an in-memory database with extensibility through plugins and various features for managing data, attachments, indexes, replication, and more.

Keywords:

#TypeScript_Database #Data_Storage #PouchDB_Alternative #NoSQL #Lightweight #Seamless_Integration #Developer_Friendly #Cross_Platform #TypeScript_Library #Web_Development #Mobile_Development #Server_Applications #Efficient_Data_Management #JSON_Documents