In-memory Object Database

Related tags

Database limeDB
Overview

limeDB

limedbbanner2

What is LimeDB

LimeDB is object-oriented NoSQL database (OOD) system that can work with complex data objects that is, objects that mirror those used in object-oriented programming languages. everything is an object, and many objects are quite complex.

Quick Start

NPM

npm install limedatabase

Creating LimeDB Server

It is preferred to have serverside of database in seperate project and only use LimeDB Client in your main project.

const limedb = require('limedatabase')
const limedb_server = new limedb.Server();

limedb_server.run({
    type    :   'tcp',
    port    :   9160,
    auth    :   'password'
});

Using LimeDB Server with specific database name

var limedb = require('limedatabase')
var limedb_server = new limedb.Server();

limedb_server.run({
    type    :   'tcp',
    port    :   9160,
    auth    :   'password'
}, "mydb.limedb");

Connecting to LimeDB Server ( Client )

var limeDB = require('limedatabase')
var client = new limeDB.Client();

client.tryConnect({
    type    :   'tcp',
    host    :   '127.0.0.1',
    port    :   9160,
    auth    :   'password'
});


client.event.on('connected', function() {
    console.log('connected'); // Connection to database
});

client.event.on('disconnected', function() {
    console.log('disconnected'); // Disconnected from database
});

Client Examples

// Insert object example - Success returns null

client.event.on('ready', function() {
    let insertObject = { name : "Test"}
    client.insert(function(err, result) {
        if ( err ) {
            console.log(err);
        } else {
            console.log(result);
        }
    }, insertObject);

})

// Get object example - Success returns null

client.event.on('ready', function() {
    client.get(function(err, result) {
        if ( err ) {
            console.log(err);
        } else {
            console.log(result)
        }
    }, "name", "Test"); // We can replace "name" with any object property name.

})
// Delete object example - Success returns null
client.delete(function(err, result) {
    if ( err ) return;
    console.log(result)
}, "name", "Test"); // Deletes all objects with this property
// Updating existing object example - Success returns null

client.event.on('ready', function () {

    // Get the object we want to update
    client.get(function (err, result) {
        if (err) return;
        let updatedObject = result;
        updatedObject[0].name = "Changed Name"; // Change value of retrieved object
        // Send changed object back to server
        client.update(function (err, result) {
            if (err) return;
            console.log(result);
        }, "name", "Test", updatedObject);
    }, "name", "Test");
})
You might also like...

Execute one command (or mount one Node.js middleware) and get an instant high-performance GraphQL API for your PostgreSQL database!

Execute one command (or mount one Node.js middleware) and get an instant high-performance GraphQL API for your PostgreSQL database!

PostGraphile Instant lightning-fast GraphQL API backed primarily by your PostgreSQL database. Highly customisable and extensible thanks to incredibly

Jan 4, 2023

πŸ‰ Reactive & asynchronous database for powerful React and React Native apps ⚑️

πŸ‰ Reactive & asynchronous database for powerful React and React Native apps ⚑️

A reactive database framework Build powerful React and React Native apps that scale from hundreds to tens of thousands of records and remain fast ⚑️ W

Jan 5, 2023

Lovefield is a relational database for web apps. Written in JavaScript, works cross-browser. Provides SQL-like APIs that are fast, safe, and easy to use.

Lovefield Lovefield is a relational database written in pure JavaScript. It provides SQL-like syntax and works cross-browser (currently supporting Chr

Jan 3, 2023

AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.

AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.

Please use version 1.x as prior versions has a security flaw if you use user generated data to concat your SQL strings instead of providing them as a

Jan 9, 2023

Realm is a mobile database: an alternative to SQLite & key-value stores

Realm is a mobile database that runs directly inside phones, tablets or wearables. This project hosts the JavaScript versions of Realm. Currently we s

Jan 3, 2023

:rocket: One command to generate REST APIs for any MySql Database.

:rocket: One command to generate REST APIs for any MySql Database.

Xmysql : One command to generate REST APIs for any MySql database Why this ? Generating REST APIs for a MySql database which does not follow conventio

Dec 30, 2022

Realtime database backend based on Operational Transformation (OT)

Realtime database backend based on Operational Transformation (OT)

This README is for [email protected]. For [email protected], see the 1.x-beta branch. To upgrade, see the upgrade guide. ShareDB ShareDB is a realtime databa

Dec 29, 2022

The JavaScript Database, for Node.js, nw.js, electron and the browser

The JavaScript Database, for Node.js, nw.js, electron and the browser

The JavaScript Database Embedded persistent or in memory database for Node.js, nw.js, Electron and browsers, 100% JavaScript, no binary dependency. AP

Jan 2, 2023

The ultimate solution for populating your MongoDB database.

The ultimate solution for populating your MongoDB database.

Mongo Seeding The ultimate solution for populating your MongoDB database πŸš€ Define MongoDB documents in JSON, JavaScript or even TypeScript files. Use

Dec 29, 2022
Releases(v1.1.1)
Owner
Luks
Luks
Bluzelle is a smart, in-memory data store. It can be used as a cache or as a database.

SwarmDB ABOUT SWARMDB Bluzelle brings together the sharing economy and token economy. Bluzelle enables people to rent out their computer storage space

Bluzelle 225 Dec 31, 2022
πŸ”₯ Dreamy-db - A Powerful database for storing, accessing, and managing multiple database.

Dreamy-db About Dreamy-db - A Powerful database for storing, accessing, and managing multiple databases. A powerful node.js module that allows you to

Dreamy Developer 24 Dec 22, 2022
DolphinDB JavaScript API is a JavaScript library that encapsulates the ability to operate the DolphinDB database, such as: connecting to the database, executing scripts, calling functions, uploading variables, etc.

DolphinDB JavaScript API English | δΈ­ζ–‡ Overview DolphinDB JavaScript API is a JavaScript library that encapsulates the ability to operate the DolphinDB

DolphinDB 6 Dec 12, 2022
An in memory postgres DB instance for your unit tests

pg-mem is an experimental in-memory emulation of a postgres database. ❀ It works both in Node or in the browser. ⭐ this repo if you like this package,

Olivier Guimbal 1.2k Dec 30, 2022
MongoDB object modeling designed to work in an asynchronous environment.

Mongoose Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Mongoose supports both promises and callbacks. Do

Automattic 25.2k Dec 30, 2022
Object Relational Mapping

Object Relational Mapping This package is not actively maintained If you're starting a new project, please consider using one of the following instead

Diogo Resende 3.1k Dec 14, 2022
A simple, fast, reliable Object Relationship Manager for Bun.

Burm is an object relational manager for Bun, the fastest Javascript Engine. The name is a merge of "Bun" and "ORM", forming "Burm". Pronounce it howe

William McGonagle 70 Dec 28, 2022
πŸ”„ A realtime Database for JavaScript Applications

RxDB A realtime Database for JavaScript Applications RxDB (short for Reactive Database) is a NoSQL-database for JavaScript Applications like Websites,

Daniel Meyer 18.6k Dec 31, 2022
⚑️ lowdb is a small local JSON database powered by Lodash (supports Node, Electron and the browser)

Lowdb Small JSON database for Node, Electron and the browser. Powered by Lodash. ⚑ db.get('posts') .push({ id: 1, title: 'lowdb is awesome'}) .wri

null 18.9k Dec 30, 2022
:koala: - PouchDB is a pocket-sized database.

PouchDB – The Database that Syncs! PouchDB is an open-source JavaScript database inspired by Apache CouchDB that is designed to run well within the br

PouchDB 15.4k Dec 30, 2022