Skip to content

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.

License

Notifications You must be signed in to change notification settings

victoryforphil/CaliDB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published