0.0.4 • Published 7 years ago

cali-db v0.0.4

Weekly downloads
6
License
ISC
Repository
github
Last release
7 years ago

CaliDB

A local and fast Database solution for NodeJS that allows your to balance between in-memory storage and JSON File based storage based on your requirements and system specs.

Features

  • Local DB
  • Seperate Index
  • Does not require DB to be loded into memory
  • Balance between File System and Memory storage for the DB (Soon)
  • Split DB files to avoid large file size (Soon)
  • Query System (Soon)
  • Compression/Opimization for Data (Soon)
  • In-Memory Optimization (Soon)

How it works

CaliDB uses an index file and sets of binary DB files. All the "raw" data is stored in the db files and their byte positions are stored in the index, along with their size. This results in not having to load the entire DB like in simpler JSON implementations.

Example Code

var CaliDB = require('calidb');

var config ={
    path:"./MyDb/"
}

var DB = new CaliDB(config);

DB.Set("123", {a:1,b:2,c:3});
DB.Set("letterswork", {a:1,b:2,c:3});
DB.Set("no_spaces", {a:1,b:2,c:3});

DB.Get("letterswork").then(function(data){
    //data = {a:1,b:2,c:3}
})

var Response = DB.GetSync("123") // Returns  {a:1,b:2,c:3}

Config Values

  • path - Path to store DB information. Must be unique if running multiple DB instances as this will define which datasource you want to recieve form

Docs

Stil Under Construction

Help

Stil Under Construction

ToDo

See Our Project Panel on Github

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago